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.
2 parents 4405f7b + 9a46e47 commit 86c9741Copy full SHA for 86c9741
Gitignore.php
@@ -54,7 +54,7 @@ public static function toRegex(string $gitignoreFileContent): string
54
}
55
56
$negativesAfter = array_filter(\array_slice($negatives, ++$index));
57
- if ($negativesAfter !== []) {
+ if ([] !== $negativesAfter) {
58
$pattern .= sprintf('(?<!%s)', implode('|', $negativesAfter));
59
60
0 commit comments