From 69357d6e1cc32f66f44918684357d174823aa603 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Mon, 13 Apr 2020 23:02:24 +0300 Subject: lpgen: add some SecureIM-related exceptions --- tools/lpgen/lpgen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 50f19e9d80..86bcd49a62 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -493,7 +493,7 @@ function ParseRCFile(FileTextVar, array) { //now make a job, till end of matching regexp 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|IndSndList|&?[Oo][Kk]|APOP|BBS|Bing|CTCP|DCC|Foodnetwork|Google|Google Talk|GPG|ICQ|ICQ Corp|ID|IP|ISDN|iTunes|Jabber|JID|Miranda|Miranda NG|mRadio|NickServ|OSD|OTR|PCS|PGP|S.ms|SASL|SMS|SSL|Steam|Steam Guard|Tox|Twitter|Winamp \(\*\)|Windows|X400|Yahoo|&\w)|(%.(.*%)?))$/g, ""); + onestring = string[2].replace(/^(((List|Tab|Tree|Spin|Custom|Slider|DateTimePicker|Radio|Check|HotKey|Progress)\d)|(whiterect|IndSndList|&?[Oo][Kk]|ANSI|APOP|BBS|Bing|CTCP|DCC|Foodnetwork|Google|Google Talk|GPG|ICQ|ICQ Corp|ID|IP|ISDN|iTunes|Jabber|JID|Miranda|Miranda NG|mRadio|NickServ|OSD|OTR|PCS|PGP|PSK|PUB|S.ms|SASL|SMS|SSL|Steam|Steam Guard|Tox|Twitter|Winamp \(\*\)|Windows|X400|Yahoo|&\w)|(%.(.*%)?))$/g, ""); // ignore some popup menu craps 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; @@ -552,7 +552,7 @@ function ParseSourceFile(FileTextVar, array) { //filter _T() function results function filter_T(string) { //filter for exact matched strings - var filter1 = /^(&?[Oo][Kk]|APOP|BBS|Bing|CTCP|DCC|Foodnetwork|Google|GPG|ICQ|ICQ Corp|ID|IP|ISDN|iTunes|Jabber|JID|Miranda|MirandaG15|Miranda NG|mRadio|NickServ|OSD|OTR|PCS|PGP|SASL|SMS|SSL|SteamID|Steam Guard|Tox|Twitter|Winamp \(\*\)|Windows|X400|Yahoo)$/g; + var filter1 = /^(&?[Oo][Kk]|ANSI|APOP|BBS|Bing|CTCP|DCC|Foodnetwork|Google|GPG|ICQ|ICQ Corp|ID|IP|ISDN|iTunes|Jabber|JID|Miranda|MirandaG15|Miranda NG|mRadio|NickServ|OSD|OTR|PCS|PGP|PSK|PUB|SASL|SMS|SSL|SteamID|Steam Guard|Tox|Twitter|Winamp \(\*\)|Windows|X400|Yahoo)$/g; //filter string starting from following words var filter2 = /^(SOFTWARE\\|SYSTEM\\|http|ftp|UTF-|utf-|TEXT|EXE|exe|txt|css|html|dat[^a]|txt|MS\x20|CLVM|TM_|CLCB|CLSID|CLUI|HKEY_|MButton|BUTTON|WindowClass|MHeader|RichEdit|RICHEDIT|STATIC|EDIT|CList|listbox|LISTBOX|combobox|COMBOBOX|TitleB|std\w|iso-|windows-||\w\\\w|urn\:|<\?xml|<\!|h\d|\.!\.).*$/g; //filter string ending with following words -- cgit v1.2.3