bugfix: Regex validation client side was not running (#254)

This commit is contained in:
James Read 2024-03-24 21:31:23 +00:00 committed by GitHub
parent a8c4db197d
commit 8b49eeff98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class ArgumentForm extends window.HTMLElement {
} else {
domEl = document.createElement('input')
if (arg.type.startsWith(':regex')) {
if (arg.type.startsWith('regex:')) {
domEl.setAttribute('pattern', arg.type.replace('regex:', ''))
}