Skip to content

Commit

Permalink
make result fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaeguard committed Sep 23, 2023
1 parent 6d0ec5b commit 6982621
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions check.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (s *State) check(inputString string, pos int, started bool, ctx *regexCheck
}

type Result struct {
matches bool
groups map[string]string
Matches bool
Groups map[string]string
}

type capture struct {
Expand Down
8 changes: 4 additions & 4 deletions lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func (s *State) Test(inputString string) Result {
}

return Result{
matches: result,
groups: groups,
Matches: result,
Groups: groups,
}
}

Expand Down Expand Up @@ -62,8 +62,8 @@ func (s *State) FindMatches(inputString string) []Result {
}

r := Result{
matches: result,
groups: groups,
Matches: result,
Groups: groups,
}

results = append(results, r)
Expand Down

0 comments on commit 6982621

Please sign in to comment.