Properly declare Receipt, Invoice, and Statement tags.

The Statement, Receipt, and Invoice tags' values should always a be a
relative path names.  Note that we "check", but do not "assert" that the file
name match a standard Unix-like path syntax, without spaces in the file name.
This commit is contained in:
Bradley M. Kuhn 2013-04-29 16:09:29 -04:00
parent 83553bd2aa
commit a274533f02

View file

@ -19,6 +19,24 @@ commodity $
format $1,000.00
nomarket
; ################################# TAGS ################################
; The Statement, Receipt, and Invoice tags' values should always a be a
; relative path names. Note that we "check", but do not "assert" that the
; file name match a standard Unix-like path syntax, without spaces in the
; file name.
tag Statement
assert value =~ /[^\/].+/
check value =~ /[^\/][^ ]+(\/[^ ])+/
tag Receipt
assert value =~ /[^\/].+/
check value =~ /[^\/][^ ]+(\/[^ ])+/
tag Invoice
assert value =~ /[^\/].+/
check value =~ /[^\/][^ ]+(\/[^ ])+/
; ############################## GENERAL/SHARED ACCOUNTS #######################