diff options
-rw-r--r-- | tools/lpgen/translate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/translate.js b/tools/lpgen/translate.js index bdaa17fa7a..ba4034cea0 100644 --- a/tools/lpgen/translate.js +++ b/tools/lpgen/translate.js @@ -272,7 +272,7 @@ stream.LoadFromFile(file); //read file into var
var translatefiletext=stream.ReadText();
//"find" - RegularExpression, first string have to start with [ and end with]. Next string - translation
-var find=/(^\[.+?\](?=$))\r\n(^(?!\[|;file).+?(?=$))/mg;
+var find=/(^\[.+?\](?=$))\r\n(^(?!\[|;file)[^\r\n]+?(?=$))/mg;
//While our "find" RegExp return a results, add strings into dictionary.
while ((string = find.exec(translatefiletext)) != null) {
//first, init empty var
|