Skip to content

Commit

Permalink
escape . in regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Jul 9, 2013
1 parent 49967c1 commit a41a06f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.dryice.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ function namespace(ns) {
text = text
.toString()
.replace('var ACE_NAMESPACE = "";', 'var ACE_NAMESPACE = "' + ns +'";')
.replace(/(.define)|\bdefine\(/g, function(_, a) {
.replace(/(\.define)|\bdefine\(/g, function(_, a) {
return a || ns + ".define("
});

Expand Down
2 changes: 1 addition & 1 deletion tool/update_deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ run("npm install jshint", function() {

jshintDist = jshintDist.replace(/\brequire\(["']|\(require,|\(require\)/g, function(r){
return r.replace("require", "req");
}).replace(/\brequire.define(\(|\s*=)/g, function(d){
}).replace(/\brequire\.define(\(|\s*=)/g, function(d){
return d.replace("define", "def");
});

Expand Down

0 comments on commit a41a06f

Please sign in to comment.