TOML checker: permit long TLDs

Longest [top-level domain in use today](https://data.iana.org/TLD/tlds-alpha-by-domain.txt) is 24 characters long (`XN--VERMGENSBERATUNG-PWB`) so I extended the TLD portion of the field validation to that length, with hyphens allowed in the middle but not the beginning or end of the TLD.
This commit is contained in:
Rome Reginelli
2019-07-15 15:20:58 -07:00
committed by GitHub
parent c9139e5a3a
commit 97f8b45872

View File

@@ -12,7 +12,7 @@
<div class="input-group">
<input id="domain" type="text" class="form-control" required
placeholder="example.com (Domain name to check)"
pattern="^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$"><br>
pattern="^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z][a-zA-Z-]{0,22}[a-zA-Z]$"><br>
<button class="btn btn-primary form-control">Check toml file</button>
</div><!--/.input-group-->
</form>