Skip to content

Commit

Permalink
chore: optimize regEnLetterAndMidline regular (#6908)
Browse files Browse the repository at this point in the history
* chore: optimize regular

* fix
  • Loading branch information
demoManito committed Mar 18, 2024
1 parent f7ebf04 commit 303de6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/constraint.go
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 303de6e

Please sign in to comment.