Skip to content

Commit 9ad100b

Browse files
authored
fix: support image/svg+xml
1 parent bdb2256 commit 9ad100b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Introduce: https://github.com/wolfogre/git-text
4-
# Version: v1.0.4
4+
# Version: v1.0.5
55

66
set -e
77

@@ -10,7 +10,7 @@ if [[ -z "$FILES" ]]; then
1010
exit 0
1111
fi
1212

13-
WRONG_FILES=$(file --mime-type ${FILES} | grep -v -E "(text/[A-Za-z0-9.+-]*|inode/(x-empty|directory|symlink)|application/json)$" | cat)
13+
WRONG_FILES=$(file --mime-type ${FILES} | grep -v -E "(text/[A-Za-z0-9.+-]*|inode/(x-empty|directory|symlink)|application/json|image/svg+xml)$" | cat)
1414

1515
if [[ -n "${WRONG_FILES}" ]]; then
1616
echo "DELETE NON-TEXT FILES OR USE 'git commit -n':"

0 commit comments

Comments
 (0)