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

Using \S in a regexp char class results in invalid character class range error #28

Closed
hbp opened this issue May 3, 2016 · 1 comment

Comments

@hbp
Copy link

hbp commented May 3, 2016

var re = /[\s]+/;
var re1 = /[\S]+/;
SyntaxError: regular expression: invalid character class range
[string]:1: in function ''
[C]: in function '?'

Fix is in regexp.c in function addrange_S, delete line 226, which declares an invalid range.

@ccxvii
Copy link
Owner

ccxvii commented May 4, 2016

Fixed in 1930f35.

@ccxvii ccxvii closed this as completed May 4, 2016
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