Description
The page_*_regex used since moin 1.7 match too much.
E.g. if you use:
---- [[CategoryDVDQuality]]
Then the default page_category_regex will match on CategoryDVDQuality]]!
For xapian search, exactly this will be put into index, not CategoryDVDQuality as expected.
Component selection
cfg.page_*_regex
Details
MoinMoin Version
1.7, 1.8 with default regexes
OS and Version
any
Python Version
any
Server Setup
any
Server Details
Language you are using the wiki in (set in the browser/UserPreferences)
en
Workaround
You can easily fix this by configuring better regexes in your wiki config.
Discussion
This bug is mainly for searching better default regexes, please add your suggestion below.
I am using:
1 page_category_regex = ur'(?P<all>Category(?P<key>(?!Template)\w+))'
If the regexes are compiled with the Unicode or Locale flag then \w will match more than just the basic ascii alphanumeric characters--see ref for details. So a suitable default for a future version of MoinMoin may look something like: [\w\-]. -- SamMorris 2008年11月22日 14:29:46
Plan
- Priority:
- Assigned to:
- Status: