new: Added some validation check in client side

This commit is contained in:
SinTan1729 2024-03-15 23:05:56 -05:00
parent 13d613093b
commit d235f1aea7
No known key found for this signature in database
GPG Key ID: EB3E68BFBA25C85F

View File

@ -35,7 +35,7 @@
<div class=" pure-control-group">
<label for="shortUrl">Short URL (optional)</label>
<input type="text" name="shortUrl" id="shortUrl" placeholder="Only a-z, 0-9, - and _ are allowed"
pattern="[A-Za-z0-9_-]+" />
pattern="[a-z0-9\-_]+" title="Only a-z, 0-9, - and _ are allowed"/>
</div>
<div class="pure-controls">
<button class="pure-button pure-button-primary">Shorten!</button>