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:
		
							parent
							
								
									83553bd2aa
								
							
						
					
					
						commit
						a274533f02
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		| 
						 | 
					@ -19,6 +19,24 @@ commodity $
 | 
				
			||||||
   format $1,000.00
 | 
					   format $1,000.00
 | 
				
			||||||
   nomarket
 | 
					   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 #######################
 | 
					; ##############################  GENERAL/SHARED ACCOUNTS #######################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue