1
0
Fork 0

Simplify regex pattern

pull/1455/head
Jordi Boggiano 2013-01-05 18:04:57 +01:00
parent 03e796bde6
commit 4c35f54356
1 changed files with 1 additions and 4 deletions

View File

@ -429,10 +429,7 @@ EOT
return false; return false;
} }
$pattern = sprintf( $pattern = sprintf('{^/?%s(/\*?)?$}', preg_quote($vendor));
'~^/?%s(/|/\*)?$~',
preg_quote($vendor, '~')
);
$lines = file($ignoreFile, FILE_IGNORE_NEW_LINES); $lines = file($ignoreFile, FILE_IGNORE_NEW_LINES);
foreach ($lines as $line) { foreach ($lines as $line) {