1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 07:38:36 -06:00

new: Added some validation check in client side

This commit is contained in:
Sayantan Santra 2024-03-15 23:05:56 -05:00
parent 13d613093b
commit d235f1aea7
Signed by: SinTan1729
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>
@ -79,4 +79,4 @@
</body>
</html>
</html>