Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vendor/quickjs/libregexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,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':
Expand Down