diff --git a/gulpfile.js b/gulpfile.js index 1147a8c80f..b026928a7d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -38,7 +38,7 @@ var gulp = require('gulp'), inlineRegexSource = function () { return replace( - /\/((?:[^\n\r[\\\/]|\\.|\[(?:[^\n\r\\\]]|\\.)*\])*)\/\.source\b/, + /\/((?:[^\n\r[\\\/]|\\.|\[(?:[^\n\r\\\]]|\\.)*\])*)\/\.source\b/g, function (m, source) { // escape backslashes source = source.replace(/\\/g, '\\\\');