This commit is contained in:
demoManito 2024-03-18 14:16:54 +08:00
parent 214cdf5c06
commit c985ecb91a

View File

@ -8,7 +8,7 @@ import (
)
// reg match english letters and midline
var regEnLetterAndMidline = regexp.MustCompile(`^\w+$`)
var regEnLetterAndMidline = regexp.MustCompile(`^[\w-]+$`)
type CheckConstraint struct {
Name string