From 281f3e369a644a9754bb6ba59cf2d554b3d98d19 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Mon, 18 Mar 2024 11:32:30 +0800 Subject: [PATCH] Fix constraint name regexp --- schema/constraint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/constraint.go b/schema/constraint.go index 5f6beb89..0ed1eab0 100644 --- a/schema/constraint.go +++ b/schema/constraint.go @@ -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