Skip to content

Commit 5a7702d

Browse files
committed
Rebuild xregexp-all
1 parent dbbceb3 commit 5a7702d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/perf/perf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@
298298
} :
299299
function() {
300300
throw new Error('Astral mode unsupported');
301-
}), benchmarkOptions
302-
)
301+
}
302+
), benchmarkOptions)
303303
);
304304

305305
(function() {

xregexp-all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,7 +2841,7 @@ function getNativeFlags(regex) {
28412841
regex.flags :
28422842
// Explicitly using `RegExp.prototype.toString` (rather than e.g. `String` or concatenation
28432843
// with an empty string) allows this to continue working predictably when
2844-
// `XRegExp.proptotype.toString` is overriden
2844+
// `XRegExp.proptotype.toString` is overridden
28452845
nativ.exec.call(/\/([a-z]*)$/i, RegExp.prototype.toString.call(regex))[1];
28462846
}
28472847

@@ -3364,7 +3364,7 @@ XRegExp.cache.flush = function(cacheName) {
33643364
* // -> 'Escaped\?\ <\.>'
33653365
*/
33663366
XRegExp.escape = function(str) {
3367-
return nativ.replace.call(toObject(str), /[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
3367+
return nativ.replace.call(toObject(str), /[-\[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
33683368
};
33693369

33703370
/**

0 commit comments

Comments
 (0)