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

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:', ''))
}