fix: allow the regex v flag
This commit is contained in:
parent
2e56e94648
commit
17e50c4c57
1 changed files with 5 additions and 2 deletions
|
|
@ -166,9 +166,12 @@ fn parse_rule(json: RuleJSON) -> Rule {
|
|||
f.chars()
|
||||
.filter(|c| {
|
||||
if *c == 'i' {
|
||||
*c != 'u' // silently ignore unicode flag
|
||||
true
|
||||
} else {
|
||||
eprintln!("Warning: unsupported flag {c}");
|
||||
// silently ignore unicode flags
|
||||
if *c != 'u' && *c != 'v' {
|
||||
eprintln!("Warning: unsupported flag {c}");
|
||||
}
|
||||
false
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue