Modify ↓
#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)
Note: See
TracTickets for help on using
tickets.
In [17970]:
TextareaKeyBindingsPlugin: Sort InterWiki links so the longest matching prefix is used (first).