浏览代码

#330: Update the regexp attribute example

nghuuphuoc 11 年之前
父节点
当前提交
d49df8c692
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      demo/attribute.html

+ 1 - 1
demo/attribute.html

@@ -41,7 +41,7 @@
                             <input type="text" class="form-control" name="username"
                                    data-bv-message="The username is not valid"
                                    required data-bv-notempty-message="The username is required and cannot be empty"
-                                   pattern="[a-zA-Z0-9_\.]+" data-bv-regexp-message="The username can only consist of alphabetical, number, dot and underscore"
+                                   pattern="^[a-zA-Z0-9]+$" data-bv-regexp-message="The username can only consist of alphabetical, number, dot and underscore"
                                    data-bv-stringlength="true" data-bv-stringlength-min="6" data-bv-stringlength-max="30" data-bv-stringlength-message="The username must be more than 6 and less than 30 characters long"
                                    data-bv-different="true" data-bv-different-field="password" data-bv-different-message="The username and password cannot be the same as each other"
                                    data-bv-remote="true" data-bv-remote-url="remote.php" data-bv-remote-message="The username is not available"