From 92c942aab3c8b2925620383c425d12c0652bee35 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 5 Sep 2024 14:24:18 +0200 Subject: [PATCH] Remove whitespaces in isbns before validating --- src/MD_STD_IN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MD_STD_IN.php b/src/MD_STD_IN.php index 54b060a..5b21a55 100644 --- a/src/MD_STD_IN.php +++ b/src/MD_STD_IN.php @@ -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) {