summaryrefslogtreecommitdiff
path: root/tools/lpgen
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-07 10:17:46 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-07 10:17:46 +0000
commitba284044919b3600cb706e822edd11ec69936c87 (patch)
treeccc6e48763ce2bc4159275826cdf01217b5c7877 /tools/lpgen
parentcdce2ce7164855eb03909b088273b36a877edf69 (diff)
lpgen: Improved popup filter.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5252 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen')
-rw-r--r--tools/lpgen/lpgen.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js
index ae75e57446..e52485a49f 100644
--- a/tools/lpgen/lpgen.js
+++ b/tools/lpgen/lpgen.js
@@ -421,7 +421,7 @@ function ParseRCFile(FileTextVar,array) {
// 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,"");
// ignore some popup menu craps
- if (string[1]=="POPUP" && onestring.match(/^([a-zA-Z]*menu)|([A-Z][a-z]+[A-Z][a-z]*)$/g))
+ if (string[1]=="POPUP" && onestring.match(/^([a-zA-Z ]*(menu|context|popup))|([A-Z][a-z]+([A-Z][a-z]*)+)|(new item)$/g))
continue;
//if there is double "", replace with single one
onestring=onestring.replace(/\"{2}/g,"\"");