Skip to content

Commit

Permalink
Fix constraint name regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Mar 18, 2024
1 parent 7b1fb0b commit 281f3e3
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("^[A-Za-z-_]+$")
var regEnLetterAndMidline = regexp.MustCompile("^[0-9A-Za-z-_]+$")

type CheckConstraint struct {
Name string
Expand Down

0 comments on commit 281f3e3

Please sign in to comment.