Skip to content

Commit

Permalink
fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
dwqs committed Dec 27, 2017
1 parent f369fe5 commit 6c64070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/area-cascader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
methods: {
beforeSetDefault () {
const chinese = /^[\u4E00-\u9FA5\uF900-\uFA2D]{3,}$/;
const chinese = /^[\u4E00-\u9FA5\uF900-\uFA2D]{2,}$/;
const num = /^\d{6,}$/;
const isCode = num.test(this.value[0]);
let isValid;
Expand Down
2 changes: 1 addition & 1 deletion src/area-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
},
beforeSetDefault () {
const chinese = /^[\u4E00-\u9FA5\uF900-\uFA2D]{3,}$/;
const chinese = /^[\u4E00-\u9FA5\uF900-\uFA2D]{2,}$/;
const num = /^\d{6,}$/;
const isCode = num.test(this.value[0]);
let isValid;
Expand Down

0 comments on commit 6c64070

Please sign in to comment.