Skip to content

Commit e79343d

Browse files
committed
update match regex main
1 parent 95c402b commit e79343d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ussd/builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (s *Step) walk(ussdParts []string) *Step {
9191

9292
// check any item that matches the input as a regex
9393
for _, child := range s.Children {
94-
if match, _ := regexp.MatchString(ussdParts[0], child.Key); match {
94+
if match, _ := regexp.MatchString(child.Key, ussdParts[0]); match {
9595
return child.walk(ussdParts[1:])
9696
}
9797
}

0 commit comments

Comments
 (0)