-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
The following code fails the assertion, where I would expect it to succeed.
assert!(globset::Glob::new("[ඞ]").unwrap().compile_matcher().is_match("ඞ"));
The problem appears to be the escaping here:
ripgrep/crates/globset/src/glob.rs
Line 701 in af8c386
re.push_str(&char_to_escaped_literal(r.0)); |
I can PR this and remove the escaping if you think this is the correct fix. Although some escaping would still be necessary, for example for the pattern [\\]
, the \
still needs to be escaped.
Metadata
Metadata
Assignees
Labels
No labels