Skip to content

Commit

Permalink
feat(validator): fix default value of replaceNumberToLang
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhonarvar authored and AliMD committed Apr 25, 2023
1 parent aea3ec1 commit 0345add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/validator/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function validator<T extends StringifyableRecord>(
/**
* Removes extra spaces and translates digits of the its input
*/
export const sanitizeString = (str: string, replaceNumberToLang: UnicodeLangKeys = 'fa'): string => {
export const sanitizeString = (str: string, replaceNumberToLang: UnicodeLangKeys = 'en'): string => {
if (!str) return '';
const unicodeDigits = new UnicodeDigits(replaceNumberToLang, 'all');
str = unicodeDigits.translate(str);
Expand Down

0 comments on commit 0345add

Please sign in to comment.