contrib/check-commit
changeset 25379 894bcdbb9e7a
parent 25137 85fc79707cb2
child 25643 6f6c97d29a1e
--- a/contrib/check-commit	Wed May 27 12:05:08 2015 -0700
+++ b/contrib/check-commit	Sun May 31 17:41:35 2015 -0700
@@ -29,7 +29,7 @@
     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
     (r"^# .*\n.{78,}", "summary line too long (limit is 78)"),
     (r"^\+\n \n", "adds double empty line"),
-    (r"\+\s+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
+    (r"^\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
 ]
 
 node = os.environ.get("HG_NODE")