feat!: support the case-insensitive regex flag
This commit is contained in:
parent
fc88622b7b
commit
f35752e3ac
7 changed files with 166 additions and 85 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue