diff options
Diffstat (limited to 'tools')
-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 1df329398e..2531b342f9 100644 --- a/tools/lpgen/translate.js +++ b/tools/lpgen/translate.js @@ -296,7 +296,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|\r|\n).+?(?=$))/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
|