r17998 - gnucash/trunk/src/import-export/qif-import - QIF Import: Support backslash characters in category names. There was a mistake the regular expression, as a pipe symbol shouldn't be escaped with a backslash when used inside brackets.

Charles Day cedayiv at cvs.gnucash.org
Sun Mar 22 13:24:58 EDT 2009


Author: cedayiv
Date: 2009-03-22 13:24:58 -0400 (Sun, 22 Mar 2009)
New Revision: 17998
Trac: http://svn.gnucash.org/trac/changeset/17998

Modified:
   gnucash/trunk/src/import-export/qif-import/qif-parse.scm
Log:
QIF Import: Support backslash characters in category names. There was a mistake the regular expression, as a pipe symbol shouldn't be escaped with a backslash when used inside brackets.


Modified: gnucash/trunk/src/import-export/qif-import/qif-parse.scm
===================================================================
--- gnucash/trunk/src/import-export/qif-import/qif-parse.scm	2009-03-19 14:45:57 UTC (rev 17997)
+++ gnucash/trunk/src/import-export/qif-import/qif-parse.scm	2009-03-22 17:24:58 UTC (rev 17998)
@@ -6,7 +6,7 @@
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
 (define qif-category-compiled-rexp
-  (make-regexp "^ *(\\[)?([^]/\\|]*)(]?)(/?)([^\\|]*)(\\|(\\[)?([^]/]*)(]?)(/?)(.*))? *$"))
+  (make-regexp "^ *(\\[)?([^]/|]*)(]?)(/?)([^|]*)(\\|(\\[)?([^]/]*)(]?)(/?)(.*))? *$"))
 
 (define qif-date-compiled-rexp
   (make-regexp "^ *([0-9]+) *[-/.'] *([0-9]+) *[-/.'] *([0-9]+).*$|^ *([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]).*$"))



More information about the gnucash-changes mailing list