Files
vuefilemanager/resources/js/helpers/ValidatorHelpers.js
2022-04-27 08:17:06 +02:00

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