mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 20:11:15 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -36,7 +36,7 @@ final class AlphaNum extends QRDataModeAbstract{
|
||||
}
|
||||
|
||||
public static function validateString(string $string):bool{
|
||||
return (bool)preg_match('/^[A-Z\d %$*+-.:\/]+$/', $string);
|
||||
return (bool)preg_match('/^[A-Z\d %$*+\-.:\/]+$/', $string);
|
||||
}
|
||||
|
||||
public function write(BitBuffer $bitBuffer, int $versionNumber):static{
|
||||
|
||||
@@ -35,7 +35,7 @@ final class AlphaNumTest extends DataInterfaceTestAbstract{
|
||||
['ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 $%*+-./:', true],
|
||||
['abc', false],
|
||||
['ÄÖÜ', false],
|
||||
[',', true],
|
||||
[',', false],
|
||||
['-', true],
|
||||
['+', true],
|
||||
['.', true],
|
||||
|
||||
Reference in New Issue
Block a user