]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Need_something_more_powerful_than_Exclude/comment_1_b454ead16d90479690ad8ee72cfd1428._comment
6e29f0c19bf51ce19ca55d82ffbc0575392fe6fa
[ikiwiki.git] / doc / forum / Need_something_more_powerful_than_Exclude / comment_1_b454ead16d90479690ad8ee72cfd1428._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="expression anchored too closely?"
5  date="2010-11-23T10:43:08Z"
6  content="""
7 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.)
8
9 The match operation in `&file_pruned` ends up a bit like this:
10
11     \"foo/Makefile\" =~ m{…||…|(^|/)Makefile$}
12 """]]