From a0094a57717b1f4c3e2a6feb978cc14f2c4690ff Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 15 Apr 2020 08:06:45 -0500 Subject: [PATCH] remove dots --- src/Illuminate/Translation/Translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Translation/Translator.php b/src/Illuminate/Translation/Translator.php index ff1c75be4243..0f1606e8493e 100755 --- a/src/Illuminate/Translation/Translator.php +++ b/src/Illuminate/Translation/Translator.php @@ -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.'); }