summaryrefslogtreecommitdiff
path: root/doc/bugs/pagespec_parsing_chokes_on_function__40____41__.mdwn
blob: b7379e7b424568c420fc399a2aea9ef9887f9469 (plain)

The pagespec regexes don't allow functions with no arguments.

IkiWiki.pm, around line 1035:

command(params) of course might be just command(). (See conditional.pm: match_included.) Trying to feed ikiwiki a pagespec without params will get you instead:

IkiWiki::PageSpec::match_glob($page, q{function}, @params) ( )

Which is completely not desired. The second + on that line should be a *.

None of the builtin pagespecs "work" with no parameters, so it's hard to write a unit test for this. But can we at least write a helpful note in case the user is given to rebuilding the wiki by hand. --Ethan