mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-10 02:25:44 +08:00
regexp: allow [\-] in unicode mode (#373)
This commit is contained in:
parent
1be68b3345
commit
837a697588
@ -686,6 +686,10 @@ static int get_class_atom(REParseState *s, CharRange *cr,
|
||||
c = '\\';
|
||||
}
|
||||
break;
|
||||
case '-':
|
||||
if (!inclass && s->is_unicode)
|
||||
goto invalid_escape;
|
||||
break;
|
||||
#ifdef CONFIG_ALL_UNICODE
|
||||
case 'p':
|
||||
case 'P':
|
||||
|
Loading…
x
Reference in New Issue
Block a user