We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd8bc0 commit 490d9c2Copy full SHA for 490d9c2
src/Loader.php
@@ -8,7 +8,7 @@
8
* License: GNU/GPLv2
9
* @see LICENSE.txt
10
*
11
- * This file: The loader (last modified: 2024.07.13).
+ * This file: The loader (last modified: 2024.07.22).
12
*/
13
14
namespace phpMussel\Core;
@@ -626,7 +626,7 @@ public function loadL10N(string $Path = ''): void
626
$Try = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE'], 20);
627
$Accepted = '';
628
foreach ($Try as $Accepted) {
629
- $Accepted = preg_replace(['~;.*$~', '~[^-A-Za-z]~'], '', $Accepted);
+ $Accepted = preg_replace(['~;.*$~', '~[^-A-Za-z]|-$~'], '', $Accepted);
630
$Primary = '';
631
$IsSameAs = false;
632
if ($this->L10NAccepted === $Accepted) {
0 commit comments