Skip to content

Commit

Permalink
remove dots
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 15, 2020
1 parent 9914b1d commit e78d24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public function getLocale()
*/
public function setLocale($locale)
{
if (Str::contains($locale, ['.', '/', '\\'])) {
if (Str::contains($locale, ['/', '\\'])) {
throw new InvalidArgumentException('Invalid characters present in locale.');
}

Expand Down

0 comments on commit e78d24f

Please sign in to comment.