Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit c60758b

Browse files
committed
Fix RegExp.lastMatch on Firefox when it is undefined
1 parent 8c7b4b1 commit c60758b

File tree

5 files changed

+31
-6
lines changed

5 files changed

+31
-6
lines changed

dist/Intl.complete.js

+27-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Intl.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2865,7 +2865,7 @@ function List() {
28652865
*/
28662866
function createRegExpRestore () {
28672867
var esc = /[.?*+^$[\]\\(){}|-]/g,
2868-
lm = RegExp.lastMatch,
2868+
lm = RegExp.lastMatch || '',
28692869
ml = RegExp.multiline ? 'm' : '',
28702870
ret = { input: RegExp.input },
28712871
reg = new List(),

0 commit comments

Comments
 (0)