Mercurial > repos > jjohnson > find_in_reference
changeset 3:fe044d480b3a default tip
Validate and sanitize separator parameters for annotation fields
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Thu, 23 Jan 2014 16:30:21 -0600 |
parents | 30975b3ff0dc |
children | |
files | find_in_reference.xml |
diffstat | 1 files changed, 24 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/find_in_reference.xml Thu Jan 23 10:52:30 2014 -0600 +++ b/find_in_reference.xml Thu Jan 23 16:30:21 2014 -0600 @@ -56,10 +56,30 @@ <when value="yes"> <param name="annotation_columns" type="data_column" data_ref="reference" multiple="true" label="columns from reference to append to found input lines" help=""/> - <param name="annotation_separator" type="text" value="" optional="true" label="separator to place between annotations from different reference lines" - help="defaults to ;"/> - <param name="annotation_col_sep" type="text" value="" optional="true" label="separator to place between annotation columns from the same reference line" - help="defaults to ,"/> + <param name="annotation_separator" type="text" value=";" optional="true" label="separator to place between annotations from different reference lines" + help="defaults to ;"> + <validator type="regex" message="Single quote character is not allowed">^[^']*$</validator> + <sanitizer> + <valid initial="string.printable"> + <remove value="'"/> + </valid> + <mapping initial="none"> + <add source="'" target=""/> + </mapping> + </sanitizer> + </param> + <param name="annotation_col_sep" type="text" value="," optional="true" label="separator to place between annotation columns from the same reference line" + help="defaults to ,"> + <validator type="regex" message="Single quote character is not allowed">^[^']*$</validator> + <sanitizer> + <valid initial="string.printable"> + <remove value="'"/> + </valid> + <mapping initial="none"> + <add source="'" target=""/> + </mapping> + </sanitizer> + </param> </when> </conditional> </inputs>