Skip to content

Commit dbc19ca

Browse files
authored
Ignore markdown
1 parent c325a1d commit dbc19ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/trailing_whitespaces.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _puppet_git_hooks_check_trailing_whitespaces () {
44
local filteredfiles=
55
local say_checkname='trailing whitespaces'
66

7-
if filteredfiles=$(echo $@ | tr ' ' '\n' | grep -vE 'README.md|^files\/'); then
7+
if filteredfiles=$(echo $@ | tr ' ' '\n' | grep -vE '\.md$|^files\/'); then
88
_puppet_git_hooks_say "checking" "$say_checkname"
99
if type grep > /dev/null 2>&1; then
1010
if ! grep -qIE ' $' ${filteredfiles}; then

0 commit comments

Comments
 (0)