Allow '-' in service name or non-service text (#1608)

This commit is contained in:
Tim Wilkinson 2024-10-08 20:58:53 -07:00 committed by GitHub
parent 4f5771610e
commit 8c863f35dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ if (f) {
<div class="service">
<div class="cols">
<div class="cols">
<input name="name" type="text" placeholder="{{s.link === false ? 'service information' : 'service name'}}" required pattern='[^-:"|<>]+' value="{{s.name}}">
<input name="name" type="text" placeholder="{{s.link === false ? 'service information' : 'service name'}}" required pattern='[^:"|<>]+' value="{{s.name}}">
<div style="flex:0">
<select name="type">
<option value="">-</option>
@ -492,7 +492,7 @@ if (f) {
template = `<div class="service">
<div class="cols">
<div class="cols">
<input name="name" type="text" placeholder="service name" required pattern='[^-:"|<>]+' value="${t.text || t.name}">
<input name="name" type="text" placeholder="service name" required pattern='[^:"|<>]+' value="${t.text || t.name}">
<div style="flex:0">
<select name="type">
<option value="">-</option>
@ -518,7 +518,7 @@ if (f) {
template = `<div class="service">
<div class="cols">
<div class="cols">
<input name="name" type="text" placeholder="service name" required pattern='[^-:"|<>]+' value="${t.text || t.name}">
<input name="name" type="text" placeholder="service name" required pattern='[^:"|<>]+' value="${t.text || t.name}">
<div style="flex:0">
<select name="type">
<option value="">-</option>