mirror of https://github.com/go-gorm/gorm.git
chore: optimize `regEnLetterAndMidline` regular (#6908)
* chore: optimize regular * fix
This commit is contained in:
parent
f7ebf049da
commit
303de6e7c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue