WSL/SLF GitLab Repository

Commit fd4bffca authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Improved syntax and validation for lines excludes (issue 886)

parent fc635fe5
......@@ -263,10 +263,10 @@ Please include meteoio_parametergroups before use!
<parameter key="CSV_PURGE_CHARS" type="text" size="large" validate="^(?:\S|(\d{1,3})|(0[xX][0-9a-fA-F]{2}))(?:\s(\S|(\d{1,3})|(0[xX][0-9a-fA-F]{2})))*\s*$">
<help>Exclude a space delimited list of characters, either directly provided or as decimal representation or as hexadecimal representation prefixed by &lt;i&gt;0x&lt;/i&gt;. Example: &lt;i&gt;0x40 " 13&lt;/i&gt;</help>
</parameter>
<parameter key="CSV_EXCLUDE_LINES" type="text" size="large" validate="^(?:\d+(?:\s\-\s\d+)?(?:\s?,\s)?)+$">
<parameter key="CSV_EXCLUDE_LINES" type="text" size="large" validate="^(?:\d+(?:\s*\-\s*\d+)?(?:\s*,\s*)?)+$">
<help>Exclude a comma delimited list of line ranges (line numbers separated by ' - ') such as &lt;i&gt;456 - 468&lt;/i&gt; or individual lines. Please note that it is not possible to mix CSV_EXCLUDE_LINES and CSV_ONLY_LINES, only one type of specification may be provided.</help>
</parameter>
<parameter key="CSV_ONLY_LINES" type="text" size="large" validate="^(?:\d+(?:\s\-\s\d+)?(?:\s?,\s)?)+$">
<parameter key="CSV_ONLY_LINES" type="text" size="large" validate="^(?:\d+(?:\s*\-\s*\d+)?(?:\s*,\s*)?)+$">
<help>Restrict the parsing to a comma delimited list of line ranges (line numbers separated by ' - ') such as &lt;i&gt;456 - 468&lt;/i&gt; or individual lines. Please note that it is not possible to mix CSV_EXCLUDE_LINES and CSV_ONLY_LINES, only one type of specification may be provided.</help>
</parameter>
</frame>
......@@ -408,10 +408,10 @@ Please include meteoio_parametergroups before use!
<parameter key="CSV#_PURGE_CHARS" type="text" size="large" validate="^(?:\S|(\d{1,3})|(0[xX][0-9a-fA-F]{2}))(?:\s(\S|(\d{1,3})|(0[xX][0-9a-fA-F]{2})))*\s*$">
<help>Exclude a space delimited list of characters, either directly provided or as decimal representation or as hexadecimal representation prefixed by &lt;i&gt;0x&lt;/i&gt;. Example: &lt;i&gt;0x40 " 13&lt;/i&gt;</help>
</parameter>
<parameter key="CSV#_EXCLUDE_LINES" type="text" size="large" validate="^(?:\d+(?:\s\-\s\d+)?(?:\s?,\s)?)+$">
<parameter key="CSV#_EXCLUDE_LINES" type="text" size="large" validate="^(?:\d+(?:\s*\-\s*\d+)?(?:\s*,\s*)?)+$">
<help>Exclude a comma delimited list of line ranges (line numbers separated by ' - ') such as &lt;i&gt;456 - 468&lt;/i&gt; or individual lines. Please note that it is not possible to mix CSV_EXCLUDE_LINES and CSV_ONLY_LINES, only one type of specification may be provided.</help>
</parameter>
<parameter key="CSV#_ONLY_LINES" type="text" size="large" validate="^(?:\d+(?:\s\-\s\d+)?(?:\s?,\s)?)+$">
<parameter key="CSV#_ONLY_LINES" type="text" size="large" validate="^(?:\d+(?:\s*\-\s*\d+)?(?:\s*,\s*)?)+$">
<help>Restrict the parsing to a comma delimited list of line ranges (line numbers separated by ' - ') such as &lt;i&gt;456 - 468&lt;/i&gt; or individual lines. Please note that it is not possible to mix CSV_EXCLUDE_LINES and CSV_ONLY_LINES, only one type of specification may be provided.</help>
</parameter>
</frame>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment