make bug more concise

master
Jon Dowland 2009-05-18 11:39:36 +01:00
parent 78004c409e
commit 749b0fe54d
1 changed files with 22 additions and 3 deletions

View 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 :( : 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: When escaped, it doesn't work at all:
[[!map pages="*_\{*}_*"]] [[!inline show="3" archive="yes" pages="*_\{*}_*"]]
[[!map pages="*_{*\}_*"]] [[!inline show="3" archive="yes" pages="*_{*\}_*"]]
More tests:
"\*{\*":
[[!inline show="3" archive="yes" pages="*{*"]]
"\*}\*":
[[!inline show="3" archive="yes" pages="*}*"]]
"\*}\* and \*{\*":
[[!inline show="3" archive="yes" pages="*}* and *{*"]]