We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.6.0
Darwin 22.4.0 arm64 arm
$ bun install hex-rgb
import hexRgb from 'hex-rgb' console.log(hexRgb('4183c4'))
$ bun run index.mjs
$ node -v v16.20.0 $ node index.mjs { red: 65, green: 131, blue: 196, alpha: 1 }
$ bun index.mjs 1 | const hexCharacters = 'a-f\\d'; 2 | const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`; 3 | const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`; 4 | const nonHexChars = new RegExp(`[^#${hexCharacters}]`, 'gi'); 5 | const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, 'i'); ^ SyntaxError: Invalid regular expression: unmatched parentheses at /Users/vxna/dev/public/bun-repro/node_modules/hex-rgb/index.js:5:21
No response
The text was updated successfully, but these errors were encountered:
this reads like an inlining bug in the transpiler
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What version of Bun is running?
0.6.0
What platform is your computer?
Darwin 22.4.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: