Skip to content

Commit

Permalink
Fix bug test failed with multiple hyphen characters
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstevendao committed Aug 14, 2019
1 parent 7cea216 commit bb4ee17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/vue-tel-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export default {
this.$emit('onInput', this.phoneObject); // Deprecated
},
testCharacters() {
const re = /^[()-+0-9\s]*$/;
const re = /^[()\-+0-9\s]*$/;
return re.test(this.phone);
},
onInput() {
Expand Down

0 comments on commit bb4ee17

Please sign in to comment.