Opened 19 years ago
Closed 19 years ago
#1974 closed defect (fixed)
wiki links should only work on word boundary -- not middle of word.
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I needed to put this string into a wiki: 8FjBpOmy
The wiki link started in the middle of the word, which seems odd to me. I think wikiwords should match word boundaries only. I had to put the escape character in the middle of the string to prevent it from being linkified; it did not work to put it at the start of the word to prevent making it a link.
Attachments (0)
Change History (3)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Milestone: | → 0.9 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
(About the previous note) The InterTrac branch introduced the possibility to have alternate WikiPageNames syntax.
In the TracIni, the following setup:
[disabled_components] trac.wiki.api.StandardWikiPageNames = yes trac.wiki.api.FlexibleWikiPageNames = no
would activate another naming scheme (which would recognize FastCGI as a Wiki page name).
Back to the original subject, I quite agree, Wiki words shouldn't begin in the middle of text.
The regexp should be
r"!?(^|(?<=[^\w/]))[A-Z][a-z]+...` **
(\w
instead of [A-Z][a-z]
)
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Implemented slightly differently in r2134
Another note: I think words like FastCGI should be wiki links automatically, too. Just because it has more than one cap in a row shouldn't disqualifiy it.