Skip to content

Commit

Permalink
refactoring regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis F F Spaniol committed Sep 18, 2020
1 parent 4f902f0 commit d8fbbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var (
`^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`)

regexpRFC3339 *regexp.Regexp = regexp.MustCompile(
`^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9]))$`)
`^(\d+)-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])[Tt]([01]\d|2[0-3]):([0-5]\d):([0-5]\d|60)(\.\d+)?(([Zz])|([\+|\-]([01]\d|2[0-3]):[0-5]\d))$`)

regexpCommaAlphaNum *regexp.Regexp = regexp.MustCompile(
`[^A-Za-z0-9,]`)
Expand Down

0 comments on commit d8fbbed

Please sign in to comment.