8000 [Finder] @nicolas-grekas review: Better regular expression pattern · symfony/symfony@b1cfcdb · GitHub
[go: up one dir, main page]

Skip to content

Commit b1cfcdb

Browse files
committed
[Finder] @nicolas-grekas review: Better regular expression pattern
Signed-off-by: Gerd Christian Kunze <gerdchristian.kunze@googlemail.com>
1 parent f7a2234 commit b1cfcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Finder/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ private function normalizeDir($dir)
742742
{
743743
$dir = rtrim($dir, '/'.\DIRECTORY_SEPARATOR);
744744

745-
if (preg_match('!^(s)?ftp://!', $dir)) {
745+
if (preg_match('#^s?ftp://#', $dir)) {
746746
$dir .= '/';
747747
}
748748

0 commit comments

Comments
 (0)
0