Skip to content

Commit 217a6ea

Browse files
RunDevelopmentmAAdhaTTah
authored andcommitted
Inline ALL regexes (#1716)
This fixes that only the first regex of the form `/regex/.source` was inlined. (I forgot the `g` flag...)
1 parent bc49c36 commit 217a6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var gulp = require('gulp'),
3838

3939
inlineRegexSource = function () {
4040
return replace(
41-
/\/((?:[^\n\r[\\\/]|\\.|\[(?:[^\n\r\\\]]|\\.)*\])*)\/\.source\b/,
41+
/\/((?:[^\n\r[\\\/]|\\.|\[(?:[^\n\r\\\]]|\\.)*\])*)\/\.source\b/g,
4242
function (m, source) {
4343
// escape backslashes
4444
source = source.replace(/\\/g, '\\\\');

0 commit comments

Comments
 (0)