vue-tel-input 5.14.0 → 5.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -367,7 +367,7 @@ const defaultOptions = [...allProps].reduce((prv, crr) => {
367
367
  options: { ...defaultOptions
368
368
  }
369
369
  });
370
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/vue-tel-input.vue?vue&type=template&id=68d31ada&
370
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/vue-tel-input.vue?vue&type=template&id=2da290d5&
371
371
  var render = function render() {
372
372
  var _vm = this,
373
373
  _c = _vm._self._c;
@@ -449,6 +449,9 @@ var render = function render() {
449
449
  "click": function ($event) {
450
450
  $event.stopPropagation();
451
451
  },
452
+ "keydown": function ($event) {
453
+ $event.stopPropagation();
454
+ },
452
455
  "input": function ($event) {
453
456
  if ($event.target.composing) return;
454
457
  _vm.searchQuery = $event.target.value;
@@ -3857,7 +3860,9 @@ function getDefault(key) {
3857
3860
  return countriesList;
3858
3861
  }
3859
3862
 
3860
- return countriesList.filter(c => new RegExp(this.searchQuery, 'i').test(c.name) || new RegExp(this.searchQuery, 'i').test(c.iso2) || new RegExp(this.searchQuery, 'i').test(c.dialCode));
3863
+ const userInput = this.searchQuery;
3864
+ const cleanInput = userInput.replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]|^0{2,}/g, '');
3865
+ return countriesList.filter(c => new RegExp(cleanInput, 'i').test(c.name) || new RegExp(cleanInput, 'i').test(c.iso2) || new RegExp(cleanInput, 'i').test(c.dialCode));
3861
3866
  },
3862
3867
 
3863
3868
  phoneObject() {