Clean em dashes from ISBNs during sanitization

This commit is contained in:
Joshua Ramon Enslin 2024-08-14 16:41:55 +02:00
parent a57036789e
commit 6174c5454e
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) {