Mercurial > hg-stable
diff hgext/mq.py @ 25379:894bcdbb9e7a
check-commit: make foo_bar naming regexp less greedy
\s is equivalent to the character class [ \t\n\r\f\v]. Using \s+ in
a regular expression against input with multiple lines may match across
multiple lines.
For the regexp in question, "\+\s+" would match "+\n " and similar
sequences, leading to false positives for functions that were included
in diff context, after a modified hunk.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 31 May 2015 17:41:35 -0700 |
parents | 80c5b2666a96 |
children | d298805fb639 |