From bede4cb94337011df75ba1999cd0fc9041163347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 25 Jun 2013 19:24:21 +0000 Subject: fix for previous commit git-svn-id: http://svn.miranda-ng.org/main/trunk@5132 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/lpgen/lpgen.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 310496a524..c580722019 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -420,9 +420,9 @@ function ParseRCFile(FileTextVar,array) { while ((string = find.exec(FileTextVar)) != null) { // check for some garbage like "List1","Tab1" etc. in *.rc files, we do not need this. onestring=string[2].replace(/^((List|Tab|Tree|Spin|Custom|Slider|DateTimePicker|Radio|Check|HotKey|Progress)\d)|(whiterect)$/g,""); - // remove some popup menu craps - if (string[1]=="POPUP") - onestring=onestring.replace(/^([a-zA-Z]*menu)|([A-Z][a-z]+[A-Z][a-z]*|dummy)$/g,""); + // ignore some popup menu craps + if (string[1]=="POPUP" && onestring.match(/^([a-zA-Z]*menu)|([A-Z][a-z]+[A-Z][a-z]*|dummy)$/g,"")) + continue; //if there is double "", replace with single one onestring=onestring.replace(/\"{2}/g,"\""); //check result. If it does not match [a-z] (no any letter in results, such as "..." or "->") it's a crap, break further actions. -- cgit v1.2.3