Remove whitespaces in isbns before validating
This commit is contained in:
parent
a57036789e
commit
92c942aab3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user