Description

The page_*_regex used since moin 1.7 match too much.

E.g. if you use:

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:

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


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/RegexesMatchTooMuch (last edited 2008-11-22 14:30:35 by SamMorris)