diff --git a/src/elvis_project.erl b/src/elvis_project.erl index 5e3b57b..6937f7c 100644 --- a/src/elvis_project.erl +++ b/src/elvis_project.erl @@ -105,7 +105,7 @@ gitignore_patterns(_Config, #{path := Path}, RuleConfig) -> case file:read_file(Path) of {ok, PatternsBin} -> PatternsStr = binary_to_list(PatternsBin), - PatternsNoR = string:replace(PatternsStr, "\r", ""), + PatternsNoR = string:replace(PatternsStr, "\r", "", all), Patterns = string:split(PatternsNoR, "\n", all), check_patterns_in_lines(Patterns, AllOf, []); {error, _} ->