Fix filterTextPlugin.

Code from @nightwing on #1000
This commit is contained in:
bootstraponline 2012-10-02 17:18:08 -06:00 committed by nightwing
commit 6cfe9617c2

View file

@ -478,7 +478,7 @@ function quoteString(str) {
}
function filterTextPlugin(text) {
return text.replace(/(['"])ace\/requirejs\/text\!/g, "$1text!");
return text.replace(/(['"])(ace|[.\/]+?)\/requirejs\/text\!/g, "$1");
}
function removeUseStrict(text) {