Added a comment: expression anchored too closely?

master
http://smcv.pseudorandom.co.uk/ 2010-11-23 10:43:21 +00:00 committed by Joey Hess
parent efba19b337
commit 9b01c9779e
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="http://smcv.pseudorandom.co.uk/"
nickname="smcv"
subject="expression anchored too closely?"
date="2010-11-23T10:43:21Z"
content="""
It looks as though you might only be excluding a top-level Makefile, and not a Makefile in subdirectories. Try excluding `(^|/)Makefile$` instead, for instance? (See `wiki_file_prune_regexps` in `IkiWiki.pm` for hints.)
The match operation in `&file_pruned` ends up a bit like this:
\"foo/Makefile\" =~ m{…|…|…|(^|/)Makefile$}
"""]]