Compare commits
2
Commits
6174c5454e
...
bce4268a70
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bce4268a70
|
||
|
|
92c942aab3
|
+1
-1
@@ -411,7 +411,7 @@ public static function validate_isbn(string $input):string {
|
||||
}
|
||||
|
||||
// Remove hyphens
|
||||
$input = trim(strtr($input, ["-" => "", "–" => "", '—' => '']));
|
||||
$input = trim(strtr($input, ["-" => "", "–" => "", '—' => '', " " => ""]));
|
||||
|
||||
// ISBN 10
|
||||
if (\mb_strlen($input) === 10) {
|
||||
|
||||
Reference in new issue
Block a user