summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-hooks/sanitize-commit4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 6c042f0..ca6879e 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -154,6 +154,10 @@ sub check_spelling()
next if $seen{$word};
$seen{$word} = 1;
if (my $correction = $MISTAKES{$word}) {
+ if ($word eq 'nam') {
+ # Ignore if in a fragments commonly used in "Lorem ipsum" texts:
+ next if (/\bNam eget dui\b/ || /\bNam quam nunc\b/);
+ }
my $sfx = "";
if (!$MISTAKES_BASE{$word}) {
$sfx = ' [*]';