1
0
Fork 0

Abort quickly if the only match is class= in a file

pull/2175/head
Jordi Boggiano 2013-08-13 17:37:41 +02:00
parent 565e216afb
commit e3a10b31ab
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class ClassMapGenerator
}
// return early if there is no chance of matching anything in this file
if (!preg_match('{\b(?:class|interface'.$traits.')\b}i', $contents)) {
if (!preg_match('{\b(?:class|interface'.$traits.')\s}i', $contents)) {
return array();
}