diff --git a/regex/re_test.go b/regex/re_test.go index 48be8a3..ce2ed69 100644 --- a/regex/re_test.go +++ b/regex/re_test.go @@ -779,7 +779,7 @@ func TestFindAllSubmatch(t *testing.T) { matchIndices := regComp.FindAllSubmatch(test.str) for i := range matchIndices { for j := range matchIndices[i] { - if matchIndices[i][j].isValid() { + if matchIndices[i][j].IsValid() { if test.result[i][j] != matchIndices[i][j] { t.Errorf("Wanted %v Got %v\n", test.result, matchIndices) }