Fix bug in validating ISBN 13s

This commit is contained in:
Joshua Ramon Enslin 2022-03-11 23:31:41 +01:00
parent 589161219f
commit 9507387c8a
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -316,7 +316,7 @@ final class MD_STD_IN {
}
// ISBN 13
if (\mb_strlen($input) === 10) {
if (\mb_strlen($input) === 13) {
if (\preg_match('/\d{13}/i', $input)) {
return $input;