Skip to content

Commit

Permalink
chore: optimize regular
Browse files Browse the repository at this point in the history
  • Loading branch information
demoManito committed Mar 18, 2024
1 parent f7ebf04 commit 214cdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// reg match english letters and midline
var regEnLetterAndMidline = regexp.MustCompile("^[0-9A-Za-z-_]+$")
var regEnLetterAndMidline = regexp.MustCompile(`^\w+$`)

type CheckConstraint struct {
Name string
Expand Down

0 comments on commit 214cdf5

Please sign in to comment.