Skip to content

Commit

Permalink
Fixes #20, changes to commentRegExp
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Sep 4, 2016
1 parent d8ed5fe commit 16fbba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alameda.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var requirejs, require, define;
queue = [],
currDirRegExp = /^\.\//,
urlRegExp = /^\/|\:|\?|\.js$/,
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/,
slice = Array.prototype.slice;
Expand All @@ -29,7 +29,7 @@ var requirejs, require, define;
}

// Could match something like ')//comment', do not lose the prefix to comment.
function commentReplace(match, multi, multiText, singlePrefix) {
function commentReplace(match, singlePrefix) {
return singlePrefix || '';
}

Expand Down

0 comments on commit 16fbba5

Please sign in to comment.