Skip to content

Commit 8b32228

Browse files
committed
fix single char problem
1 parent ad3235a commit 8b32228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/SDK.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function __construct(Language $language, Spec $spec)
101101
return str_replace([' ', '_'], '.', strtolower(preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1.', $value)));
102102
}));
103103
$this->twig->addFilter(new TwigFilter('caseSnake', function ($value) {
104-
preg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $value, $matches);
104+
preg_match_all('!([A-Za-z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $value, $matches);
105105
$ret = $matches[0];
106106
foreach ($ret as &$match) {
107107
$match = $match == strtoupper($match)

0 commit comments

Comments
 (0)