From 1e5e9d70802ea0f473d0ca4ac495629bea11a1bb Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sat, 31 Oct 2020 19:00:33 -0400 Subject: [PATCH] localization parser fix Co-authored-by: Jill Stingray --- Web/Util/Localizator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Util/Localizator.php b/Web/Util/Localizator.php index eae65674..722cee4b 100644 --- a/Web/Util/Localizator.php +++ b/Web/Util/Localizator.php @@ -32,7 +32,7 @@ class Localizator if(isset($GLOBALS["localizationCache_$hash"])) return $GLOBALS["localizationCache_$hash"]; $string = file_get_contents($file); - $string = preg_replace("%^\%{.*\%}$%m", "", $string); #Remove comments + $string = preg_replace("%^\%{.*\%}\r?$%m", "", $string); #Remove comments $array = []; foreach(preg_split("%;[\\r\\n]++%", $string) as $statement) {