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

Regular expression problem in words array #76

Open
maxlibin opened this issue Dec 22, 2016 · 2 comments
Open

Regular expression problem in words array #76

maxlibin opened this issue Dec 22, 2016 · 2 comments

Comments

@maxlibin
Copy link

maxlibin commented Dec 22, 2016

I am getting an error: Uncaught SyntaxError: Invalid regular expression:
words: ['my string here'] here which contains special characters in my string that caused problem of this.

@maxlibin maxlibin changed the title how to disable regular expression regular expression problem in words array Dec 22, 2016
@maxlibin maxlibin changed the title regular expression problem in words array Regular expression problem in words array Dec 22, 2016
@domeix
Copy link

domeix commented Oct 13, 2021

I got Uncaught SyntaxError: invalid regexp group because of the word '?'.

@domeix
Copy link

domeix commented Oct 13, 2021

I got Uncaught SyntaxError: invalid regexp group because of the word '?'.

Solved the problem with a double escaped special character: '\\\?'

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

2 participants