You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let d = new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u"), m = new RegExp(
"[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u");
Describe the bug
jsdoc-type-pratt-parser in getQuoted which uses unicode patterns and "Unicode character class escape" which don't seem to be supported on react native
you can see the code here
code/node_modules/jsdoc-type-pratt-parser/dist/index.js
1:
/[$_\p{ID_Start}]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u
2:
/[$\-\p{ID_Continue}\u200C\u200D]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u
after being bundled into storybook it looks like
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape
Reproduction link
storybookjs/react-native#538
Reproduction steps
feat/v8
yarn
)yarn build
)yarn workspace expo-example storybook
No response
System
Additional context
Hermes's implementation of regex is lacking some of the advanced regex features
The text was updated successfully, but these errors were encountered: