4
0
Эх сурвалжийг харах

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

James Read 2 жил өмнө
parent
commit
8b49eeff98

+ 1 - 1
webui.dev/js/ArgumentForm.js

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