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.
1 parent f638807 commit dcbdc31Copy full SHA for dcbdc31
Gitignore.php
@@ -78,6 +78,6 @@ private static function lineToRegex(string $gitignoreLine): string
78
79
return ($isAbsolute ? '' : '(?:[^/]+/)*')
80
.$regex
81
- .('/' !== substr($gitignoreLine, -1) ? '(?:$|/)' : '');
+ .(!str_ends_with($gitignoreLine, '/') ? '(?:$|/)' : '');
82
}
83
composer.json
@@ -16,7 +16,8 @@
16
17
],
18
"require": {
19
- "php": ">=7.1.3"
+ "php": ">=7.1.3",
20
+ "symfony/polyfill-php80": "^1.16"
21
},
22
"autoload": {
23
"psr-4": { "Symfony\\Component\\Finder\\": "" },
0 commit comments