Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Apr 7, 2023
1 parent 1e2186a commit 3b38ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
)

var (
RegexEmailWeak = regexp.MustCompile(`.+@.+\..+`) // https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
RegexHostname = regexp.MustCompile(`^[a-zA-Z]([a-zA-Z0-9\-]+[\.]?)*[a-zA-Z0-9]$`) // https://tools.ietf.org/html/rfc952
RegexEmailWeak = regexp.MustCompile(`.+@.+\..+`) // https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
RegexHostname = regexp.MustCompile(`^[a-zA-Z]([a-zA-Z0-9\-]+[.]?)*[a-zA-Z0-9]$`) // https://tools.ietf.org/html/rfc952
RegexAlnum = regexp.MustCompile(`^[a-zA-Z0-9]+$`)
RegexNumeric = regexp.MustCompile(`^[0-9]+$`)
RegexAlpha = regexp.MustCompile(`^[a-zA-Z]+$`)
Expand Down

0 comments on commit 3b38ab8

Please sign in to comment.