Commit 217a6ea4262083aad1d8dd140475ea7ff64ce2d8

Michael Schmidt 2019-01-24T15:41:32

Inline ALL regexes (#1716) This fixes that only the first regex of the form `/regex/.source` was inlined. (I forgot the `g` flag...)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gulpfile.js b/gulpfile.js
index 1147a8c..b026928 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, '\\\\');