Remove whitespaces in isbns before validating

This commit is contained in:
Joshua Ramon Enslin 2024-09-05 14:24:18 +02:00
parent a57036789e
commit 92c942aab3
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -411,7 +411,7 @@ final class MD_STD_IN {
}
// Remove hyphens
$input = trim(strtr($input, ["-" => "", "" => ""]));
$input = trim(strtr($input, ["-" => "", "" => "", " " => ""]));
// ISBN 10
if (\mb_strlen($input) === 10) {