Edgewall Software
Modify

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: Vivek Khera <vivek@…> 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 anonymous, 19 years ago

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.

comment:2 by Christian Boos, 19 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

(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 Christian Boos, 19 years ago

Resolution: fixed
Status: assignedclosed

Implemented slightly differently in r2134

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.