Skip to content

Commit 58ad2e7

Browse files
committed
reverse lower case
1 parent 47bc595 commit 58ad2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coder_sniffer/Drupal/Sniffs/NamingConventions/ValidClassNameSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function process(File $phpcsFile, $stackPtr)
7676
// @todo We could make this more strict to check if there are more than
7777
// 2 upper case characters in a row anywhere, but not decided yet.
7878
// See https://www.drupal.org/project/coder/issues/3497433
79-
if (preg_match('|^[A-Z]{3}[A-Z_0-9]*$|', $name) === 1) {
79+
if (preg_match('|^[A-Z]{3}[^a-z]*$|', $name) === 1) {
8080
$error = '%s name must use UpperCamel naming and not contain multiple upper case letters in a row';
8181
$phpcsFile->addError($error, $stackPtr, 'NoUpperAcronyms', $errorData);
8282
}

0 commit comments

Comments
 (0)