]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Added a comment: expression anchored too closely?
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>
Tue, 23 Nov 2010 10:43:09 +0000 (10:43 +0000)
committerJoey Hess <joey@kitenet.net>
Tue, 23 Nov 2010 10:43:09 +0000 (10:43 +0000)
doc/forum/Need_something_more_powerful_than_Exclude/comment_1_b454ead16d90479690ad8ee72cfd1428._comment [new file with mode: 0644]

diff --git a/doc/forum/Need_something_more_powerful_than_Exclude/comment_1_b454ead16d90479690ad8ee72cfd1428._comment b/doc/forum/Need_something_more_powerful_than_Exclude/comment_1_b454ead16d90479690ad8ee72cfd1428._comment
new file mode 100644 (file)
index 0000000..6e29f0c
--- /dev/null
@@ -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:08Z"
+ 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$}
+"""]]