Mercurial > piecrust2
diff piecrust/processing/base.py @ 22:df790a827d38
Correctly match skip patterns.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 18 Aug 2014 23:20:43 -0700 |
parents | 617191dec18e |
children | e4c345dcf33c |
line wrap: on
line diff
--- a/piecrust/processing/base.py Mon Aug 18 23:20:03 2014 -0700 +++ b/piecrust/processing/base.py Mon Aug 18 23:20:43 2014 -0700 @@ -332,7 +332,7 @@ # skip patterns use a forward slash regardless of the platform. filename = filename.replace('\\', '/') for pattern in patterns: - if pattern.match(filename): + if pattern.search(filename): return True return False