All files / src/validation pattern.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 111x       1x 1x 1x 1x 1x 1x  
export const PATTERN = {
  // イニシャル(履歴書・ビジネス文書+学術引用名をカバー)
  // - Dotted: T.Y / T.Y. / T.Y.Z / T.Y.Z.
  // - Plain:  TY / TY. / TYZ / TYZ.
  INITIAL: /^(?:[A-Z](?:\.[A-Z]){1,2}\.?|[A-Z]{2,3}\.?)$/,
  JP_POSTAL: /^(\d{3}-?\d{4})$/,
  DATE: /^\d{4}-\d{2}-\d{2}$/,
  DATE_YM: /^\d{4}-\d{2}$/,
  EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
}