We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d839c1 commit a41aaa1Copy full SHA for a41aaa1
pomsky-lib/src/exprs/intersection.rs
@@ -29,9 +29,10 @@ impl Compile for Intersection {
29
})?;
30
31
if let Regex::CompoundCharSet(_) = regex {
32
- if let RegexFlavor::Java | RegexFlavor::Ruby | RegexFlavor::Rust = options.flavor {
33
- // supported
34
- } else {
+ if !matches!(
+ options.flavor,
+ RegexFlavor::JavaScript | RegexFlavor::Java | RegexFlavor::Ruby | RegexFlavor::Rust
35
+ ) {
36
return Err(CompileErrorKind::Unsupported(
37
Feature::CharSetIntersection,
38
options.flavor,
0 commit comments