"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PhoneNumber = void 0;

var _validators = require("./validators");

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
const PhoneNumber = (0, _validators.makeValidator)(x => new RegExp('^\\+?[1-9]\\d{1,14}$').test(x), 'Not a valid Phone Number.');
/**
 * @memberOf module:@mobify/commerce-integrations/dist/types
 * @typedef {String} PhoneNumber
 */

exports.PhoneNumber = PhoneNumber;