Fix pattern for dns subdomain aliases (#1278)

This commit is contained in:
Tim Wilkinson 2024-08-16 17:21:20 -07:00 committed by GitHub
parent c06642949a
commit 6b72623b98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ if (f) {
for (let i = 0; i < length(aliases.map); i++) {
%}
<div class="cols alias">
<input type="text" name="hostname" value="{{aliases.map[i].hostname}}" required pattern="[a-zA-Z][a-zA-Z0-9_\-]*">
<input type="text" name="hostname" value="{{aliases.map[i].hostname}}" required pattern="(\*\.)?[a-zA-Z][a-zA-Z0-9_\-]*">
<div>
<select name="address">
{%