how to fix "Invalid regular expression: /( |,|\?|!|;/: Unterminated group" #1742
Unanswered
dieshangtianya
asked this question in
Q&A
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I introduce i18next and react-i18next, in most devices the app works great, but in some other android pad, I encounter a bug that issued by sentry: “Invalid regular expression: /( |,|?|!|;/: Unterminated group“,I dug into the sourcemap and found it occurred in the looksLikeObjectPath function.
I am wonder what happen in these devices! why does it happen only in some times? it is only a normal regular expression, and the nsSeparator, keySeparator variables are built-in. I douted the string.concat function has been modified, maybe the nsSeparator, keySeparator has been changed in some other condition, but all assumptions are being overturned.
Anyone can give some advices about how to figure it out?
Beta Was this translation helpful? Give feedback.
All reactions