Skip to content

Commit

Permalink
fix: check for CRLF on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 7, 2023
1 parent 3a4171b commit 0d5f0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func newTestServerAndNode(t *testing.T, ns mockNamesys) (*httptest.Server, *mock
}

func matchPathOrBreadcrumbs(s string, expected string) bool {
matched, _ := regexp.MatchString("Index of\n[\t ]*"+regexp.QuoteMeta(expected), s)
matched, _ := regexp.MatchString("Index of(\n|\r\n)[\t ]*"+regexp.QuoteMeta(expected), s)
return matched
}

Expand Down

0 comments on commit 0d5f0a9

Please sign in to comment.