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

Solved - error: SyntaxError: invalid range in character class #6

Open
itsj opened this issue Nov 10, 2013 · 1 comment
Open

Solved - error: SyntaxError: invalid range in character class #6

itsj opened this issue Nov 10, 2013 · 1 comment

Comments

@itsj
Copy link

itsj commented Nov 10, 2013

Sorry, my fault. Merge Mismatch...

In Firebug i get following error
SyntaxError: invalid range in character class
in
if ((new RegExp(this._generatePrefix() + '.+')).test(kv[0]) && kv[1]) {

any suggestions?

@AlexChittock
Copy link
Owner

Most likely a "-" in the content in _this.generatePrefix. The error stems from an invalid regular expression, so you'd need to make sure any special characters are appropriately escaped before using them in the regular expression.

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