Replies: 1 comment
-
a) you’re mentioning actual humans here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a text node with thevalue of "We'll be welcoming @ Pepe and @ Tata" and I'm matching something akin to
/@\S+/g
withh('a.mention', { href: '/' + user }, '@' + user)
, findAndReplace only seems to work on the first result of each node, in this case @ Pepe, but not on the second. Is this expected behaviour? Is this what the docs mean by not doing partial matches? I looked on the web and on other questions but couldn't find the answer.Thank you! Great package!
Beta Was this translation helpful? Give feedback.
All reactions