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;