Skip to content
New issue

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

SyntaxError: Invalid RegExp with "(", ")", "?", "\", ... #111

Open
SiBorho opened this issue Feb 26, 2024 · 0 comments
Open

SyntaxError: Invalid RegExp with "(", ")", "?", "\", ... #111

SiBorho opened this issue Feb 26, 2024 · 0 comments

Comments

@SiBorho
Copy link

SiBorho commented Feb 26, 2024

When entering characters I get an error:

minimal Set-Up:
const localData = [ { key: 'a', value: 'aa' }, { key: 'b', value: 'bb' }, { key: 'c', value: 'cc' } ];

<SelectList data={localData} setSelected={() => console.log()} />

When Input:

  • ( -> SyntaxError: Invalid RegExp: Parenthesized expression not closed, js engine: hermes
  • ) -> SyntaxError: Invalid RegExp: Parenthesized expression not closed, js engine: hermes
  • ? -> SyntaxError: Invalid RegExp: Quantifier has nothing to repeat, js engine: hermes
  • \ -> SyntaxError: Invalid RegExp: Incomplete escape, js engine: hermes
  • ...

Throw error on InputText at:

Is there a fix or workaround for this issue?

You can also reproduce the error on (Expo Snack) with the inputs

@SiBorho SiBorho closed this as completed Feb 26, 2024
@SiBorho SiBorho reopened this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant