Skip to content

Commit 7d66bf5

Browse files
committed
topic validation
1 parent f26f0c1 commit 7d66bf5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ <h1 class="text-3xl font-bold text-center text-blue-600 mb-3">Global Entry Appoi
4848

4949
<div>
5050
<label for="topic" class="block font-semibold mb-1">Ntfy Topic</label>
51-
<input type="text" id="topic" placeholder="e.g. my-topic-123" required
51+
<input type="text" id="topic" name="topic"
52+
placeholder="e.g. my-topic-123 (no spaces, no special chars only a-z, A-Z, 0-9, _, - )" required
53+
pattern="^[a-zA-Z0-9_-]+$"
5254
class="w-full p-2 border border-gray-300 rounded" />
5355
</div>
5456

0 commit comments

Comments
 (0)