-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implement RegExp 'v' flag, part 1 #229
Conversation
This commit implements the flag itself and teaches the regex engine to reject previously accepted patterns when in unicodeSets mode. Refs: quickjs-ng#228
@@ -864,17 +868,43 @@ static int re_parse_char_class(REParseState *s, const uint8_t **pp) | |||
cr_init(cr, s->opaque, lre_realloc); | |||
p = *pp; | |||
p++; /* skip '[' */ | |||
|
|||
if (s->unicode_sets) { | |||
static const char verboten[] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it german? 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or Dutch ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it german? 😅
To make it sound more affirmative? Using the French interdit would definitely sound less absolute.
As explained in this quote is attributed to Sir Winston Churchill:
In England, everything is permitted except what is forbidden.
In Germany, everything is forbidden except what is permitted.
In France, everything is allowed, even what is prohibited.
In the USSR, everything is prohibited, even what is permitted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or Dutch ;-)
No, it would be verboden in Dutch, unless a local dialect in the northern part of Holland is closer to German.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dialect around here is in fact very close to Low German but really the reason I used "verboten" is because I'm a big fan of German as spoken (well...) in that one scene from the movie Der Untergang :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but really the reason I used "verboten" is because I'm a big fan of German
Okay 😂 Nice one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dann können wir hier auf Deutsch diskutieren. Kannst to auch Saúl ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No chance 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tut mir Leid... let's switch back to the lingua franca :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Na gut, akzeptiert xD
? |
This commit implements the flag itself and teaches the regex engine to reject previously accepted patterns when in unicodeSets mode.
Refs: #228