Skip to content

Commit fb1e7f8

Browse files
uwej711dbu
authored andcommitted
fix determine locales regular expression
1 parent 9d7eb43 commit fb1e7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 = array();
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)