You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See new unit test in PR above. The search string is the regular expression /(emph|sis)/ and the replacement text is 'foo'. So the text node with the content 'emphasis' should be replaced with three new text nodes, with the contents 'foo', 'a', and 'foo', respectively.
Expected behavior
The test should pass.
Actual behavior
The test fails because only the first match is replaced, resulting in only two nodes with the contents 'foo' and 'asis', respectively.
Initial checklist
Affected packages and versions
[email protected]
Link to runnable example
#4
Steps to reproduce
See new unit test in PR above. The search string is the regular expression
/(emph|sis)/
and the replacement text is'foo'
. So the text node with the content'emphasis'
should be replaced with three new text nodes, with the contents'foo'
,'a'
, and'foo'
, respectively.Expected behavior
The test should pass.
Actual behavior
The test fails because only the first match is replaced, resulting in only two nodes with the contents
'foo'
and'asis'
, respectively.Affected runtime and version
[email protected]
Affected package manager and version
[email protected]
Affected OS and version
macOS Ventura 13.5.2
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: