Commit 32e8933b authored by Andrea Manzi's avatar Andrea Manzi
Browse files

FTS-1174:change regex not to accept trailing slash

parent eac345e2
......@@ -37,11 +37,11 @@
</td>
<td>
<input class="form-control" type="text" placeholder="Source" name="source"
id="link-add-field-source" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*))" required title="i.e. http://mysite.ch or *" />
id="link-add-field-source" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}[^\/])" required title="i.e. http://mysite.ch or *" />
</td>
<td>
<input class="form-control" type="text" placeholder="Destination" name="destination"
id="link-add-field-destination" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*))" required title="i.e. http://mysite.ch or *" />
id="link-add-field-destination" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b[^\/])" required title="i.e. http://mysite.ch or *" />
</td>
<td>
<input class="form-control" type="number" placeholder="Streams" name="nostreams"
......
......@@ -137,7 +137,7 @@
<div class="panel-heading">
<h2 class="panel-title">
<input type="text" name="se" placeholder="Storage"
class="form-control" id="se-add-field-se" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*))" required title="i.e. http://mysite.ch or *"/>&nbsp;
class="form-control" id="se-add-field-se" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}[^\/])" required title="i.e. http://mysite.ch or *"/>&nbsp;
</div>
<div class="panel-body">
<div class="row">
......
Markdown is supported
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