summaryrefslogtreecommitdiff
path: root/tools/lpgen
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lpgen')
-rw-r--r--tools/lpgen/translate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/translate.js b/tools/lpgen/translate.js
index fe988bb628..1abd1377e4 100644
--- a/tools/lpgen/translate.js
+++ b/tools/lpgen/translate.js
@@ -250,7 +250,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(.+?)(?=$)/mg;
+var find=/(^\[.+?\])\r\n((?!\[|;file).+?[^\]])(?=$)/mg;
//While our "find" RegExp return a results, add strings into dictionary.
while ((string = find.exec(translatefiletext)) != null) {
//first, init empty var