Closed ardcore closed 6 years ago
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 :))
(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