From 88ed143e60ce07cdbe80f2605d68be4662d98acf Mon Sep 17 00:00:00 2001 From: Basil Date: Fri, 8 Feb 2013 07:36:34 +0000 Subject: more correct *.rc parser git-svn-id: http://svn.miranda-ng.org/main/trunk@3468 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/lpgen/lpgen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/lpgen') diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index e9942424ac..19a4f9daea 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -421,7 +421,7 @@ function ParseRCFile(RC_File,array) { //read on line into rcline rcline=RC_File_stream.ReadLine(); //find string to translate in rcline by regexp - rc_regexp=rcline.match(/\s*(?:CONTROL|(?:DEF)?PUSHBUTTON|[LRC]TEXT|AUTORADIOBUTTON|GROUPBOX|(?:AUTO)CHECKBOX|CAPTION|MENUITEM|POPUP)\s*"((?:(?:""[^"]+?"")*[^"]*?)*)"(,|$)/); + rc_regexp=rcline.match(/\s*(?:CONTROL|(?:DEF)?PUSHBUTTON|[LRC]TEXT|AUTORADIOBUTTON|GROUPBOX|(?:AUTO)?CHECKBOX|CAPTION|MENUITEM|POPUP)\s*"((?:(?:""[^"]+?"")*[^"]*?)*)"\s*?(,|$)/); // if exist rc_regexp, do checks, double "" removal and add strings into array if (rc_regexp) { // check for some garbage like "List1","Tab1" etc. in *.rc files, we do not need this. -- cgit v1.2.3