Skip to content

Commit

Permalink
fix: intersection check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloso committed Dec 21, 2024
1 parent 86ecc24 commit 71e8bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pomsky-lib/src/exprs/char_class/char_set_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl RegexCompoundCharSet {
}

fn may_intersect(&self, other: &RegexCharSet) -> bool {
self.intersections.iter().any(|set| set.may_intersect(other))
self.intersections.iter().all(|set| set.may_intersect(other))
}

pub(crate) fn codegen(&self, buf: &mut String, flavor: RegexFlavor) {
Expand Down

0 comments on commit 71e8bec

Please sign in to comment.