feat!: support the case-insensitive regex flag

This commit is contained in:
Amaan Qureshi 2023-08-06 20:30:02 -04:00
parent fc88622b7b
commit f35752e3ac
No known key found for this signature in database
GPG key ID: E67890ADC4227273
7 changed files with 166 additions and 85 deletions

View file

@ -183,7 +183,8 @@ function normalize(value) {
case RegExp:
return {
type: 'PATTERN',
value: value.source
value: value.source,
flags: value.flags
};
case ReferenceError:
throw value