Skip to content

Commit 6197b20

Browse files
authored
feat: added vee-validate v4 detector (#37)
1 parent c9e89d6 commit 6197b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectors/plugins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"url": "https://vee-validate.logaretm.com/"
112112
},
113113
"detectors": {
114-
"js": "Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__ && ('$_veeObserver' in el.__vue__ || (el.__vue__.$validator && 'attach' in el.__vue__.$validator)))))"
114+
"js": "window.VeeValidate || Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__ && ('$_veeObserver' in el.__vue__ || (el.__vue__.$validator && 'attach' in el.__vue__.$validator)) || el.__vueParentComponent && el.__vueParentComponent.provides && Reflect.ownKeys(el.__vueParentComponent.provides).some(i => /vee-validate/i.test(i.description)) )))"
115115
}
116116
}
117117
}

0 commit comments

Comments
 (0)