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:
parent
71ff2d85de
commit
d46a138eb0
1 changed files with 2 additions and 2 deletions
|
@ -904,8 +904,8 @@ class ArcanistXHPASTLinter extends ArcanistLinter {
|
|||
$decl_name = $declaration->getChildByIndex(1);
|
||||
$decl_string = $decl_name->getConcreteString();
|
||||
|
||||
//Exclude strangely named classes.
|
||||
if (!preg_match('/\w+/', $decl_string)) {
|
||||
// Exclude strangely named classes, e.g. XHP tags.
|
||||
if (!preg_match('/^\w+$/', $decl_string)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue