Explorar o código

Allow spaces in lang.txt

Morten Brix Pedersen %!s(int64=25) %!d(string=hai) anos
pai
achega
f7fa433cf9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pisg.pl

+ 1 - 1
pisg.pl

@@ -1915,7 +1915,7 @@ sub get_language_templates
             $current_lang = '';
         }
         
-        elsif ($line =~ /(\w+) = "(.*)"$/ && $current_lang ne '') {
+        elsif ($line =~ /(\w+)\s+=\s+"(.*)"\s*$/ && $current_lang ne '') {
             $T{$current_lang}{$1} = $2;
         }
     }