From 1e8c11d4d18a749e73cd99eb05ae36df6919c888 Mon Sep 17 00:00:00 2001 From: Basil Date: Wed, 19 Jun 2013 10:07:40 +0000 Subject: For *.rc files we have a "garbage filter" in another function. "filter" variables are for filtering garbage in source files only. git-svn-id: http://svn.miranda-ng.org/main/trunk@5034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/lpgen/lpgen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index a32afa02fb..963d91625a 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -419,7 +419,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[1].replace(/(List|Tab|Tree|Spin|Custom|Slider)\d/g,""); + onestring=string[1].replace(/^((List|Tab|Tree|Spin|Custom|Slider|DateTimePicker|Radio|Check|HotKey|Progress)\d)|(whiterect)$/g,""); //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. @@ -460,7 +460,7 @@ function filter_T(string) { //filter not begin with symbols :.]?;#~{!/_+$ //var filter1=/^[^\:\]\?\;\#\~\|\{\!\/\_\+\\$].+$/g; //filter string starting from following words -var filter2=/^(SOFTWARE\\|SYSTEM\\|http|ftp|UTF-|utf-|TEXT|EXE|exe|txt|css|html|dat|txt|MS\x20|CLVM|TM_|CLCB|CLSID|CLUI|HKEY_|MButton|BUTTON|WindowClass|MHeader|RichEdit|RICHEDIT|STATIC|EDIT|CList|listbox|LISTBOX|combobox|COMBOBOX|DateTimePicker1|Radio1|Check1|HotKey1|whiterect|Progress1|TitleB|std\w|iso-|windows-||\w\\\w|urn\:|<\?xml|<\!|h\d|\.!\.).*$/g; +var filter2=/^(SOFTWARE\\|SYSTEM\\|http|ftp|UTF-|utf-|TEXT|EXE|exe|txt|css|html|dat|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 var filter3=/^.+(001|\/value|\*!\*|=)$/g; //filter from Kildor -- cgit v1.2.3