]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
index.html.in: use "*" instead of "+" for input pattern validation
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 2 Nov 2023 04:34:33 +0000 (00:34 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 2 Nov 2023 04:34:33 +0000 (00:34 -0400)
The two are equivalent given the minlength restriction; I just like
this better.

index.html.in

index e129eeaf84ff70aaf50915ba8995f98d96d09f86..5c203d443527894440bdd1fc2435c05f31715009 100644 (file)
                    type="text"
                    minlength="2"
                    maxlength="2"
-                   pattern="[a-zA-Z0-9]+" />
+                   pattern="[a-zA-Z0-9]*" />
           </div>
           <input type="hidden" name="servicename" value="BaltimoreLink" />
           <input type="submit" name="go" value="Get Ticket" />
                    type="text"
                    minlength="2"
                    maxlength="2"
-                   pattern="[a-zA-Z0-9]+" />
+                   pattern="[a-zA-Z0-9]*" />
           </div>
 
           <h3>Zone</h3>
                    type="text"
                    minlength="2"
                    maxlength="2"
-                   pattern="[a-zA-Z0-9]+" />
+                   pattern="[a-zA-Z0-9]*" />
           </div>
 
           <h3>Origin</h3>