You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Util/FileMatcher.php
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ public static function toRegEx($glob, $flags = 0): string
64
64
// literal directory separator
65
65
self::T_SLASH => '/',
66
66
self::T_QUERY => '.',
67
+
self::T_BANG => '^',
67
68
68
69
// match any segment up until the next directory separator
69
70
self::T_ASTERIX => '[^/]*',
@@ -154,7 +155,8 @@ private static function processTokens(array $tokens): array
154
155
continue;
155
156
}
156
157
157
-
// greedy globstar (trailing?)
158
+
// greedy globstar (trailing?)
159
+
// TODO: this should probably only apply at the end of the string according to the webmozart implementation and therefore would be "T_TRAILING_GLOBSTAR"
0 commit comments