summaryrefslogtreecommitdiff
path: root/doc/forum/Need_something_more_powerful_than_Exclude/comment_2_0019cd6b34c8d8678b2532de57a92d15._comment
blob: 7842caeac04f2e150792cc51e17f414ad40c3df5 (plain)
  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:21Z"
  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. The match operation in `&file_pruned` ends up a bit like this:
  9. \"foo/Makefile\" =~ m{…|…|…|(^|/)Makefile$}
  10. """]]