-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty values in optional capture groups are rendered as undefined #70
Comments
Hmm, am having a hard time reproducing: https://jsfiddle.net/fdqcsy9p/ Could you post the specific code that breaks if possible? Or create a small failing test case / fiddle? |
https://jsfiddle.net/ef5z8j0g/ (same code, just fixed errors in your fiddle coming from my lousy paste :)) |
Should be fixed in v0.4.6. |
(Thanks for reporting this! And lemme know if you find any other weird bugs.) |
Thanks for the quick turnaround! |
When using
replace
with optional capture groups findAndReplaceDOMText seems to replace empty capture group values withundefined
in HTML (instead of empty string). Example:ran against
Thisdocument
(in HTML) will result inThisundefineddocument
The text was updated successfully, but these errors were encountered: