diff --git a/source/Ox.js b/source/Ox.js index e72614ab..1ad65c0f 100644 --- a/source/Ox.js +++ b/source/Ox.js @@ -9,10 +9,11 @@ var args = arguments, callback = args[args.length - 1], path = getPath(), + regexp = /dev\/$/, time = +new Date(); - if (args[0] === true) { - path = path.replace(/dev\/$/, 'build/'); + if (args[0] === true && regexp.test(path)) { + path = path.replace(regexp, 'build/'); loadScript('Ox.js', function() { Ox.PATH = path; Ox.load.apply(null, Ox.slice(args, 1));