Skip to content

Commit

Permalink
add strictPhone
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Aug 15, 2024
1 parent 83fa7f0 commit c95c7fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/worktime.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export interface RestrictionsOrder<T extends {} = {}> extends Restrictions {
/** Дополнительный комментарий по доставке */
deliveryDescription?: string;

/** Строгая валидация телефона по маске */
strictPhoneInput?: boolean;

/** Разновидность вводимой капчи */
captchaType?: string | null;

Expand Down Expand Up @@ -494,6 +497,7 @@ export class WorkTimeValidator {
}

if (!isValue(result)) {
console.debug("getCurrentWorkTime > !isValue(result):", result, restriction)
throw new Error('There is no current work schedule for the current day');
} else {
return result;
Expand Down

0 comments on commit c95c7fa

Please sign in to comment.