We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b31562d + b6c5f4b commit 49ed8b3Copy full SHA for 49ed8b3
src/Rules/Core/Alphadash.php
@@ -14,6 +14,6 @@ final class Alphadash extends AbstractRule
14
{
15
public function isValid(mixed $input = null): bool
16
17
- return (bool) preg_match('/^([-a-z0-9_-])+$/i', $input);
+ return (bool) preg_match('/^[a-z0-9_-]+$/i', $input);
18
}
19
0 commit comments