-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Description
What version of Bun is running?
1.3.8
What platform is your computer?
macos
What steps can reproduce the bug?
save this to a file: test.js and just bun test ./test.js
This works on node.
const R =
/[½⅓⅔¼¾⅕⅖⅗⅘⅙⅚⅐⅛⅜⅝⅞⅑⅒]|([⁰¹²³⁴⁵⁶⁷⁸⁹]+|[₀₁₂₃₄₅₆₇₈₉]+|[0-9]+)([\/\⁄])([⁰¹²³⁴⁵⁶⁷⁸⁹]+|[₀₁₂₃₄₅₆₇₈₉]+|[0-9]+)/;
test('should match fraction, () => {
const m = '³⁄₅₂ cup of stuff'.match(R);
expect(m).toMatchInlineSnapshot(`
[
"³⁄₅₂",
"³",
"⁄",
"₅₂",
]
`);
});What is the expected behavior?
The regex should match
What do you see instead?
null
Additional information
see code sample
Reactions are currently unavailable