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

Fix RegExp.lastMatch on Firefox when it is undefined #80

Merged
merged 1 commit into from
Jan 5, 2015

Conversation

mweibel
Copy link
Contributor

@mweibel mweibel commented Jan 5, 2015

I came accross the issue that sometimes in Firefox RegExp.lastMatch is undefined and then the createRegExpRestore() Function fails.

I hope the tests run properly, I couldn't test the Saucelabs tests because of not having an account.

andyearnshaw added a commit that referenced this pull request Jan 5, 2015
Fix RegExp.lastMatch on Firefox when it is undefined
@andyearnshaw andyearnshaw merged commit 1d96e68 into andyearnshaw:master Jan 5, 2015
@andyearnshaw
Copy link
Owner

Change looks harmless enough. Tests are still failing on SL because of unrelated issues that I haven't had chance to resolve yet.

Cheers!

@mweibel
Copy link
Contributor Author

mweibel commented Jan 5, 2015

Perfect, thanks!

@mweibel mweibel deleted the fix-lastMatch-undefined branch January 5, 2015 17:24
@slorber
Copy link

slorber commented Mar 16, 2015

Hi,

Has this been released yet?

@caridy
Copy link
Collaborator

caridy commented Mar 16, 2015

not yet, will be in 1.0.0-rc1, still working on that.

@jsg2021
Copy link

jsg2021 commented Jun 2, 2015

I think you can work around it by doing /./.test(' '); somewhere early in your app before importing this library

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants