Skip to content

Commit f95a563

Browse files
style: format code with prettier
1 parent 1fa074d commit f95a563

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/decorator/string/IsPhoneNumber.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const IS_PHONE_NUMBER = 'isPhoneNumber';
77
/**
88
* Checks if the string is a valid phone number. To successfully validate any phone number the text must include
99
* the intl. calling code, if the calling code wont be provided then the region must be set.
10-
*
10+
*
1111
* @param value the potential phone number string to test
1212
* @param region 2 characters uppercase country code (e.g. DE, US, CH) for country specific validation.
1313
* If text doesn't start with the international calling code (e.g. +41), then you must set this parameter.
@@ -26,14 +26,11 @@ export function isPhoneNumber(value: string, region?: CountryCode): boolean {
2626
/**
2727
* Checks if the string is a valid phone number. To successfully validate any phone number the text must include
2828
* the intl. calling code, if the calling code wont be provided then the region must be set.
29-
*
29+
*
3030
* @param region 2 characters uppercase country code (e.g. DE, US, CH) for country specific validation.
3131
* If text doesn't start with the international calling code (e.g. +41), then you must set this parameter.
3232
*/
33-
export function IsPhoneNumber(
34-
region?: CountryCode,
35-
validationOptions?: ValidationOptions
36-
): PropertyDecorator {
33+
export function IsPhoneNumber(region?: CountryCode, validationOptions?: ValidationOptions): PropertyDecorator {
3734
return ValidateBy(
3835
{
3936
name: IS_PHONE_NUMBER,

0 commit comments

Comments
 (0)