do not include trailing slash in scriptOptions.base

This commit is contained in:
nightwing 2012-06-21 20:55:55 +04:00
commit 8fbe921ad9

View file

@ -97,10 +97,9 @@ exports.init = function() {
} }
} }
var m = src.match(/^(?:(.*\/)ace\.js)(?:\?|$)/); var m = src.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);
if (m) { if (m)
scriptUrl = m[1] || m[2]; scriptUrl = m[1];
}
} }
if (scriptUrl) { if (scriptUrl) {