1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 22:32:41 +01:00

Don't issue lint about strangely named classes just because they have some

word character in them.
This commit is contained in:
epriestley 2011-01-26 07:03:52 -08:00
parent 71ff2d85de
commit d46a138eb0

View file

@ -904,8 +904,8 @@ class ArcanistXHPASTLinter extends ArcanistLinter {
$decl_name = $declaration->getChildByIndex(1); $decl_name = $declaration->getChildByIndex(1);
$decl_string = $decl_name->getConcreteString(); $decl_string = $decl_name->getConcreteString();
//Exclude strangely named classes. // Exclude strangely named classes, e.g. XHP tags.
if (!preg_match('/\w+/', $decl_string)) { if (!preg_match('/^\w+$/', $decl_string)) {
return; return;
} }