From 3307126a9ebd37a615d8f0a5d81325bf2eef5704 Mon Sep 17 00:00:00 2001 From: Stefan Krenz Date: Tue, 5 Nov 2024 10:44:03 +0100 Subject: [PATCH] fix: Change function --- src/AbstractQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractQuery.php b/src/AbstractQuery.php index 3dfd39b..ce78ea0 100644 --- a/src/AbstractQuery.php +++ b/src/AbstractQuery.php @@ -86,7 +86,7 @@ public function verify() $lowered = strtolower($trimmed); $replaced = preg_replace('/\W/', '-', $lowered); - switch (strtolower($replaced)) { + switch (strlen($replaced)) { case 2: $language = $replaced; break;