:octocat: regex fix (#282)

This commit is contained in:
smiley
2024-10-16 10:22:02 +02:00
parent 9964cf8ff1
commit f822e807d7
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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{