Skip to content

Commit

Permalink
fix regexp
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <[email protected]>
  • Loading branch information
okJiang committed Jan 22, 2025
1 parent 4cd4bc2 commit 885ae70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/keypath/absolute_key_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func KeyspaceGroupIDPath(id uint32) string {

// GetCompiledKeyspaceGroupIDRegexp returns the compiled regular expression for matching keyspace group id.
func GetCompiledKeyspaceGroupIDRegexp() *regexp.Regexp {
pattern := strings.Join([]string{KeyspaceGroupIDPrefix(), `(\d{5})$`}, "/")
pattern := KeyspaceGroupIDPrefix() + `(\d{5})$`
return regexp.MustCompile(pattern)
}

Expand Down

0 comments on commit 885ae70

Please sign in to comment.