summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBasil <basil@miranda-ng.org>2013-03-13 06:36:48 +0000
committerBasil <basil@miranda-ng.org>2013-03-13 06:36:48 +0000
commit782143c2b42ba989d41237b18fbdb737ee94cc30 (patch)
treeb3ba8126365e43604ebad27f1834898a11512c9c /tools
parent18e8a2e407cf8c841ddc492f8f6cfc5f35ddd60f (diff)
more precise RegExp for dictionary building.
git-svn-id: http://svn.miranda-ng.org/main/trunk@3990 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools')
-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 ba4034cea0..46175dc62c 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)[^\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