Skip to content

Commit 2c280fa

Browse files
committed
fixing regex in rule list
1 parent eacf961 commit 2c280fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RedisCommon/redis.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ func (r Rule) AsRow(rowId int) table.Row {
574574
}
575575

576576
if r.Regex != nil {
577-
rd["Matches"] = r.Regex
577+
rd["Matches"] = *r.Regex
578578
}
579579

580580
rd["RowId"] = rowId
@@ -638,7 +638,7 @@ func GetRules(rdb *redis.Client, applicationName string) ([]Rule, error) {
638638
rule.QueryIds = make([]string, 0)
639639
}
640640
rule.QueryIds = append(rule.QueryIds, value.(string))
641-
case "Regex":
641+
case "regex":
642642
r := value.(string)
643643
rule.Regex = &r
644644
case "ttl":

0 commit comments

Comments
 (0)