We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24d4e6f + 29cdbcc commit 9eeb2f5Copy full SHA for 9eeb2f5
src/Data/AlphaNum.php
@@ -36,7 +36,7 @@ public function getLengthInBits():int{
36
}
37
38
public static function validateString(string $string):bool{
39
- return (bool)preg_match('/^[A-Z\d %$*+-.:\/]+$/', $string);
+ return (bool)preg_match('/^[A-Z\d %$*+\-.:\/]+$/', $string);
40
41
42
public function write(BitBuffer $bitBuffer, int $versionNumber):static{
tests/Data/AlphaNumTest.php
@@ -35,7 +35,7 @@ public static function stringValidateProvider():array{
35
['ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 $%*+-./:', true],
['abc', false],
['ÄÖÜ', false],
- [',', true],
+ [',', false],
['-', true],
['+', true],
['.', true],
0 commit comments