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.
ENDS_WITH
1 parent c35ddab commit ddb593bCopy full SHA for ddb593b
gix-glob/src/pattern.rs
@@ -128,7 +128,10 @@ impl Pattern {
128
let value = value.into();
129
match self.first_wildcard_pos {
130
// "*literal" case, overrides starts-with
131
- Some(pos) if self.mode.contains(pattern::Mode::ENDS_WITH) && !value.contains(&b'/') => {
+ Some(pos)
132
+ if self.mode.contains(pattern::Mode::ENDS_WITH)
133
+ && (!mode.contains(wildmatch::Mode::NO_MATCH_SLASH_LITERAL) || !value.contains(&b'/')) =>
134
+ {
135
let text = &self.text[pos + 1..];
136
if mode.contains(wildmatch::Mode::IGNORE_CASE) {
137
value
0 commit comments