Skip to content

Commit 8a72acc

Browse files
author
gentele
committed
trim return from ignorerules
1 parent b21bf85 commit 8a72acc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/util/ignoreutil/ignorefile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func GetIgnoreRules(rootDirectory string) ([]string, error) {
2828
ignoreLines := strings.Split(string(ignoreBytes), "\n")
2929

3030
for _, ignoreRule := range ignoreLines {
31+
ignoreRule = strings.Trim(ignoreRule, "\r")
3132
ignoreRule = strings.Trim(ignoreRule, " ")
3233
initialOffset := 0
3334

0 commit comments

Comments
 (0)