diff --git a/schema/constraint.go b/schema/constraint.go index 0ed1eab0..80a743a8 100644 --- a/schema/constraint.go +++ b/schema/constraint.go @@ -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