diff options
author | Goraf <goraf@miranda-ng.org> | 2016-01-03 12:44:08 +0000 |
---|---|---|
committer | Goraf <goraf@miranda-ng.org> | 2016-01-03 12:44:08 +0000 |
commit | 17445083c15afccddea02e832a8e3b36438f230d (patch) | |
tree | d05f5ed4f8a24432ceb5819143bb56ee0fa73789 /tools/lpgen | |
parent | be39d828674c61ff49baea601ab6bac28d131a66 (diff) |
Exclude strings from POPUP menu that contains 'popup' substring but not 'popups' - exception for 'POPUP "Events popups"' from TabSRMM's resource.rc which is not a garbage
git-svn-id: http://svn.miranda-ng.org/main/trunk@16008 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen')
-rw-r--r-- | tools/lpgen/lpgen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index cf971a478f..4f43e290df 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -432,7 +432,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|IndSndList|&?[Oo][Kk]|ICQ|Jabber|WhatsApp|OSD|Google|Miranda NG|SMS|Miranda|Windows|&\w)|(%.(.*%)?))$/g,"");
// ignore some popup menu craps
- if (string[1]=="POPUP" && onestring.match(/^([a-zA-Z ]*(menu|context|popup))|([A-Z][a-z]+([A-Z][a-z]*)+)|(new item)$/g))
+ if (string[1]=="POPUP" && onestring.match(/^([a-zA-Z ]*(menu|context|popup(?!s)))|([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,"\"");
|