Ver código fonte

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

James Read 2 anos atrás
pai
commit
8b49eeff98
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      webui.dev/js/ArgumentForm.js

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