Skip to content

Commit

Permalink
fix(plugins/dates): limit values for days and months in mm/dd format
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jul 24, 2024
1 parent 18db3da commit a15e444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dates/src/model/regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default [
// @4pm
[/^@[1-9]+(am|pm)$/, 'Time', '@5pm'],
// 03/02
[/^[0-9]{2}\/[0-9]{2}$/, 'Date', '03/02'],
[/^(?:0[1-9]|1[0-2])\/(?:0[1-9]|[12]\d|3[01])$/, 'Date', '03/02'],
// iso-time
// [/^[0-9]{4}[:-][0-9]{2}[:-][0-9]{2}T[0-9]/i, 'Time', 'iso-time-tag']

Expand Down

0 comments on commit a15e444

Please sign in to comment.