mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-17 09:15:32 +00:00
:octocat: regex fix (#282)
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('#^['.self::CHAR_MAP.']+$#', $string);
|
||||
return (bool)preg_match('/^[A-Z\d %$*+-.:\/]+$/', $string);
|
||||
}
|
||||
|
||||
public function write(BitBuffer $bitBuffer, int $versionNumber):static{
|
||||
|
||||
Reference in New Issue
Block a user