fix #1508: jshint is broken in build
This commit is contained in:
parent
e3d14ab620
commit
c5378b54e1
6 changed files with 334 additions and 171 deletions
|
|
@ -603,7 +603,9 @@ function namespace(ns) {
|
|||
text = text
|
||||
.toString()
|
||||
.replace('var ACE_NAMESPACE = "";', 'var ACE_NAMESPACE = "' + ns +'";')
|
||||
.replace(/\bdefine\(/g, ns + ".define(");
|
||||
.replace(/(.define)|\bdefine\(/g, function(_, a) {
|
||||
return a || ns + ".define("
|
||||
});
|
||||
|
||||
return text;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue