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 5631e84a29..15f66736fe 100644 --- a/tools/lpgen/translate.js +++ b/tools/lpgen/translate.js @@ -260,7 +260,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).+?(?=$))/mg;
//While our "find" RegExp return a results, add strings into dictionary.
while ((string = find.exec(translatefiletext)) != null) {
//first, init empty var
|