Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13944 closed defect (fixed)

Pasting InterWiki links should prefer longest matching prefix?

Reported by: anonymous Owned by: lucid
Priority: normal Component: TextareaKeyBindingsPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

interwiki_map and links are unordered dicts. So iterating over them uses a "random" match first.

If there are multiple matches:

w https://en.wikipedia.org/wiki/$1
s https://en.wikipedia.org/wiki/Special:$1

The longest match should be used instead?

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by lucid

Resolution: fixed
Status: newclosed

In [17970]:

TextareaKeyBindingsPlugin: Sort InterWiki links so the longest matching prefix is used (first).

Last edited 4 years ago by lucid (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain lucid.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.