parent
8721b1a16f
commit
c49062b939
@ -1,7 +1,7 @@
|
||||
{
|
||||
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=6c45b94df33523eac4ae",
|
||||
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=70fadcb63bc6b91314e4",
|
||||
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=5707b0c70e7e00d7f7aa",
|
||||
"/js/vue/Modules/Reservation/app.js": "/js/vue/Modules/Reservation/app.js?id=d8b99f78c445a5dcfabd",
|
||||
"/js/vue/User/app.js": "/js/vue/User/app.js?id=e0438d523387e91845cb"
|
||||
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=f3046ccee6deb672cb42",
|
||||
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=60c658b3e0d3bf77cf19",
|
||||
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=d7b53e717be729233749",
|
||||
"/js/vue/Modules/Reservation/app.js": "/js/vue/Modules/Reservation/app.js?id=03c06477f0ef6f223599",
|
||||
"/js/vue/User/app.js": "/js/vue/User/app.js?id=a0f854cd48d4c6d1e185"
|
||||
}
|
||||
|
@ -1,12 +1,18 @@
|
||||
import { Validator } from "vee-validate";
|
||||
|
||||
const isBetween = (value, { min, max } = {}) => {
|
||||
return Number(min) <= value.length && Number(max) >= value.length;
|
||||
return Number(min) <= value.length && Number(max) >= value.length;
|
||||
};
|
||||
|
||||
// The first param is called 'min', and the second is called 'max'.
|
||||
const paramNames = ['min', 'max'];
|
||||
const paramNames = ["min", "max"];
|
||||
|
||||
Validator.extend('digits_between', isBetween, {
|
||||
paramNames // pass it in the extend options.
|
||||
Validator.extend("digits_between", isBetween, {
|
||||
paramNames // pass it in the extend options.
|
||||
});
|
||||
|
||||
Validator.extend("alpha_en_dash", {
|
||||
validate(value) {
|
||||
return /^[0-9A-Za-z\-\_]+$/.test(value);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in new issue