Skip to content

Commit 97def24

Browse files
committed
Merge branch '1.4'
2 parents 40edc97 + fb1e7f8 commit 97def24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Candidates/Candidates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function determineLocale($url)
108108
}
109109

110110
$matches = [];
111-
if (preg_match('#('.implode('|', $this->locales).')(/|$)#', $url, $matches)) {
111+
if (preg_match('#^/('.implode('|', $this->locales).')(/|$)#', $url, $matches)) {
112112
return $matches[1];
113113
}
114114

0 commit comments

Comments
 (0)