Re #133 Option for ignoring whitespacing (#345)

* Global setting option to ignore whitespace when detecting a change
This commit is contained in:
dgtlmoon
2022-01-02 22:28:34 +01:00
committed by GitHub
parent 489671dcca
commit b5c1fce136
9 changed files with 196 additions and 76 deletions

View File

@@ -69,15 +69,24 @@
<div class="tab-pane-inner" id="filters">
<span class="pure-form-message-inline">Note: This is applied globally in addition to the per-watch rules.</span>
<fieldset class="pure-group">
<fieldset class="pure-group">
{{ render_field(form.ignore_whitespace) }}
<span class="pure-form-message-inline">Ignore whitespace, tabs and new-lines/line-feeds when considering if a change was detected.<br/>
<i>Note:</i> Changing this will change the status of your existing watches, possibily trigger alerts etc.
</span>
</fieldset>
<fieldset class="pure-group">
{{ render_field(form.global_ignore_text, rows=5, placeholder="Some text to ignore in a line
/some.regex\d{2}/ for case-INsensitive regex
") }}
<span class="pure-form-message-inline">
Each line processed separately, any line matching will be ignored.<br/>
<span class="pure-form-message-inline">Note: This is applied globally in addition to the per-watch rules.</span><br/>
<span class="pure-form-message-inline">Each line processed separately, any line matching will be ignored.<br/>
Regular Expression support, wrap the line in forward slash <b>/regex/</b>.
</span>
</span>
</fieldset>
</div>
<div id="actions">