Skip to content

Commit 0b2c1fd

Browse files
authored
linter.go: remove case insensitivity from manInfoLinter regex
Signed-off-by: shAdE424 <[email protected]>
1 parent bc0b478 commit 0b2c1fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/linter/linter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ func documentationLinter(_ context.Context, _ *config.Configuration, pkgname, pa
243243
}
244244

245245
var (
246-
manRegex = regexp.MustCompile(`(?i)^usr/(?:local/)?share/man(?:/man[0-9][^/]*)?(?:/[^/]+\.[0-9][^/]*(?:\.(?:gz|bz2|xz|lzma|Z))?)?$|^usr/man(?:/man[0-9][^/]*)?(?:/[^/]+\.[0-9][^/]*(?:\.(?:gz|bz2|xz|lzma|Z))?)?$`)
247-
infoRegex = regexp.MustCompile(`(?i)^usr/(?:local/)?share/info/(?:dir|[^/]+\.info(?:\-[0-9]+)?(?:\.(?:gz|bz2|xz|lzma|Z))?)$`)
246+
manRegex = regexp.MustCompile(`^usr/(?:local/)?share/man(?:/man[0-9][^/]*)?(?:/[^/]+\.[0-9][^/]*(?:\.(?:gz|bz2|xz|lzma|Z))?)?$|^usr/man(?:/man[0-9][^/]*)?(?:/[^/]+\.[0-9][^/]*(?:\.(?:gz|bz2|xz|lzma|Z))?)?$`)
247+
infoRegex = regexp.MustCompile(`^usr/(?:local/)?share/info/(?:dir|[^/]+\.info(?:\-[0-9]+)?(?:\.(?:gz|bz2|xz|lzma|Z))?)$`)
248248
)
249249

250250
func manInfoLinter(_ context.Context, _ *config.Configuration, pkgname, path string) error {

0 commit comments

Comments
 (0)