[fix] Allow uppercase and number in github url pattern.

This commit is contained in:
opi 2014-10-03 10:05:51 +02:00
parent ff5aa2b413
commit b1139a7a68

View file

@ -55,7 +55,7 @@
<div class="form-group has-feedback">
<label for="label" class="col-sm-12">{{t 'url'}}</label>
<div class="col-sm-12">
<input type="url" id="url" name="url" class="form-control" value="" placeholder="https://github.com/USER/REPOSITORY" required pattern="^https://github.com/[a-z-_]+/[a-z-_]+[/]?$">
<input type="url" id="url" name="url" class="form-control" value="" placeholder="https://github.com/USER/REPOSITORY" required pattern="^https://github.com/[a-zA-Z0-9-_]+/[a-zA-Z0-9-_]+[/]?$">
<p class="text-warning">
<span class="fa-github"></span> {{t 'custom_app_url_only_github'}}
</p>