@astral/validations 1.23.1 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createRule } from '../createRule';
|
2
2
|
import { isEmptyString } from '../utils';
|
3
3
|
export const IS_MOBILE_PHONE_DEFAULT_MESSAGE = 'Некорректный номер телефона';
|
4
|
-
const MOBILE_PHONE_REGEX = /^(
|
4
|
+
const MOBILE_PHONE_REGEX = /^(79)\d{9}$/;
|
5
5
|
/**
|
6
6
|
* @description Проверяет валиден ли мобильный телефон
|
7
7
|
* @example isMobilePhone()('79999999999');
|
@@ -4,7 +4,7 @@ exports.isMobilePhone = exports.IS_MOBILE_PHONE_DEFAULT_MESSAGE = void 0;
|
|
4
4
|
const createRule_1 = require("../createRule");
|
5
5
|
const utils_1 = require("../utils");
|
6
6
|
exports.IS_MOBILE_PHONE_DEFAULT_MESSAGE = 'Некорректный номер телефона';
|
7
|
-
const MOBILE_PHONE_REGEX = /^(
|
7
|
+
const MOBILE_PHONE_REGEX = /^(79)\d{9}$/;
|
8
8
|
/**
|
9
9
|
* @description Проверяет валиден ли мобильный телефон
|
10
10
|
* @example isMobilePhone()('79999999999');
|