Skip to content

Commit

Permalink
fix(regex): corn tab (#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-tacquet authored Feb 20, 2025
1 parent 264c187 commit 11c7f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/regex/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const subDomain = 'sub.another-example.com'
const dashStartDomain = '-sub.another-example.com'
const uppercaseDomain = 'SUB.another-example.com'
const longTldDomain = 'sub.another-example.verylongtld'
const cronTest = '0 0 0 * * 0 1-4'
const cronTest = '0 0 0 */5 * 0 1-4'
const digitsTest = '0123456789'
const elevenDigitsCodeTest = '01234567890'
const emailTest = '[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion packages/regex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const uppercaseBasicSubdomain =
export const advancedDomainName =
/^(?:(?:(?:[a-zA-Z0-9À-ÖØ-öø-ÿ](?:[a-zA-Z0-9À-ÖØ-öø-ÿ-]{0,61}[a-zA-Z0-9À-ÖØ-öø-ÿ])?)\.)+[a-zA-Z]{2,}|(?:[0-9]{1,3}\.){3}[0-9]{1,3})(?::[\d]{1,5})?$/

export const cron = /^((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})$/
export const cron = /^((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*|\*\/\d+) ?){5,7})$/
export const digits = /^[0-9]*$/
export const macAddress =
/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/
Expand Down

0 comments on commit 11c7f3d

Please sign in to comment.