mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
16 lines
394 B
JavaScript
Vendored
16 lines
394 B
JavaScript
Vendored
const ValidatorHelpers = {
|
|
install(Vue) {
|
|
Vue.prototype.$isValidEmail = function (email) {
|
|
return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/) !== null
|
|
}
|
|
|
|
Vue.prototype.$reCaptchaToken = async function (action) {
|
|
await this.$recaptchaLoaded()
|
|
|
|
return await this.$recaptcha(action)
|
|
}
|
|
},
|
|
}
|
|
|
|
export default ValidatorHelpers
|