We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b
Darwin 22.5.0 arm64 arm
when try to match a regular expression with these emoji and replace it with string
let str = "🔴11 54 / 10,000"; str = str.replace(/[🔵🔴,]+/g, ''); console.log(str);
the outputs should be: 11 54 / 10000 instead of 🔴 / 0000
11 54 / 10000
🔴 / 0000
No response
The text was updated successfully, but these errors were encountered:
@dylan-conway Any ideas here?
Sorry, something went wrong.
This is the transpiled source:
let str = "\uD83D\uDD3411 54 / 10,000"; str = str.replace(/[\u{1f535}\u{1f534},]+/g, ""); console.log(str);
Using the regex constructor with a string works, new RegExp("[🔵🔴,]+", "g");, so we probably aren't encoding /.../ correctly
new RegExp("[🔵🔴,]+", "g");
/.../
Successfully merging a pull request may close this issue.
What version of Bun is running?
1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
when try to match a regular expression with these emoji and replace it with string
What is the expected behavior?
the outputs should be:
11 54 / 10000
instead of
🔴 / 0000
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: