Commit 581fcc5c authored by Aaron Kuzemchak's avatar Aaron Kuzemchak

Cleaner regex

Signed-off-by: 's avatarAaron Kuzemchak <aaron@kuzemchak.net>
parent 03acf9ca
......@@ -137,7 +137,7 @@ $languages[] = Config::get('application.language');
foreach ($languages as $language)
{
if (preg_match("#^{$language}(/.*)?$#i", $uri))
if (preg_match("#^{$language}(?:$|/)#i", $uri))
{
Config::set('application.language', $language);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment