Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Calling exec(...) a second time returns null #4

Open
strarsis opened this issue Jun 2, 2017 · 0 comments
Open

Calling exec(...) a second time returns null #4

strarsis opened this issue Jun 2, 2017 · 0 comments

Comments

@strarsis
Copy link
Contributor

strarsis commented Jun 2, 2017

@johnotander:
Because g flag is used, the regexp object cannot be used a second time.
A solution to this would be removing the g flag and using start and end anchors, see https://stackoverflow.com/questions/32900659/calling-exec-second-time-returns-null-in-javascript

Concerning matching always the whole string as alternative:
Is this the purpose of this plugin?
Or should it rather match (extract) multiple CSS URL occurrences in a given string?

@strarsis strarsis changed the title Calling exec second time results in null Calling exec(...) a second time returns null Jun 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant