Skip to content

Commit

Permalink
fix: lint on error message log
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylar-3 committed Nov 21, 2024
1 parent c4fdf14 commit 33d0c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/decorator/string/IsPhoneNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export function IsPhoneNumber(
validate: (value, args): boolean => isPhoneNumber(value, args?.constraints[0], checkedNumberTypes),
defaultMessage: buildMessage(
eachPrefix =>
eachPrefix + '$property must be a valid phone number of the following types' + checkedNumberTypes,
eachPrefix +
'$property must be a valid phone number and of the following types: ' +
checkedNumberTypes.toString(),
validationOptions
),
},
Expand Down

0 comments on commit 33d0c81

Please sign in to comment.