Skip to content
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

Js.String.replaceByRe doesn't work with capturing groups #144

Open
jchavarri opened this issue Jul 17, 2024 · 0 comments
Open

Js.String.replaceByRe doesn't work with capturing groups #144

jchavarri opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jchavarri
Copy link
Contributor

jchavarri commented Jul 17, 2024

Js.String.replaceByRe ~regexp:[%re "/<em>(.*?)<\\/em>/gi"] ~replacement:"$1" will not work as it does in the browser. Rather than replacing with the capturing group it just uses the "$1" string.

Maybe the function should be commented for now, or at least raise an alert / warning?

@davesnx davesnx added the bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants