small fix
This commit is contained in:
parent
ff1875604d
commit
4b479c5ec1
@ -2,7 +2,7 @@ module.exports = {
|
||||
validate_phone ({ phone, format } = {}) {
|
||||
try {
|
||||
if (typeof format === 'string') {
|
||||
return new RegExp(format).test(callnumber)
|
||||
return new RegExp(format).test(phone)
|
||||
}
|
||||
} catch (exp) {
|
||||
console.log('Invalid phone format: ', format)
|
||||
|
Loading…
Reference in New Issue
Block a user