]> sipb.mit.edu Git - ikiwiki.git/commitdiff
make bug more concise
authorJon Dowland <jon@ncl.ac.uk>
Mon, 18 May 2009 10:39:36 +0000 (11:39 +0100)
committerJon Dowland <jon@ncl.ac.uk>
Mon, 18 May 2009 10:39:36 +0000 (11:39 +0100)
doc/bugs/pagespec_can__39__t_match___123__curly__125___braces.mdwn

index 263950a1d66c6620bc7dec15676fcf6fda5656de..0c77a2f41cb83390d99885b38ca05ce9ed1a01ec 100644 (file)
@@ -1,9 +1,28 @@
 I want match pages which have actually curly braces in the names (like this one), but this matches a lot of pages without the braces in their names :( :
 
-[[!map pages="*_{*}_*"]]
+[[!inline show="3" archive="yes" pages="*_{*}_*"]]
+
+(note: the inline above has been restricted to 3 matches to keep this page
+concise. Hopefully it is still clear that this page is not in the output set,
+and the 3 pages in the output set do not contain curly braces in their
+titles).
 
 When escaped, it doesn't work at all:
 
-[[!map pages="*_\{*}_*"]]
+[[!inline show="3" archive="yes" pages="*_\{*}_*"]]
+
+[[!inline show="3" archive="yes" pages="*_{*\}_*"]]
+
+More tests:
+
+"\*{\*":
+
+[[!inline show="3" archive="yes" pages="*{*"]]
+
+"\*}\*":
+
+[[!inline show="3" archive="yes" pages="*}*"]]
+
+"\*}\* and \*{\*":
 
-[[!map pages="*_{*\}_*"]]
+[[!inline show="3" archive="yes" pages="*}* and *{*"]]