Page MenuHomePhabricator

matchWikiprojectLink assumes language codes contain word characters when they may also contain dash
Closed, ResolvedPublic

Description

matchWikiprojectLink() fails on e.g. be-tarask since - is not a word character and so not caught by the \w+ regexp.

Event Timeline

Change 287573 had a related patch set uploaded (by Lokal Profil):
Limit language codes to lower case or hyphen

https://gerrit.wikimedia.org/r/287573

Change 287573 merged by jenkins-bot:
Limit language codes to lower case or hyphen

https://gerrit.wikimedia.org/r/287573

Mentioned in SAL [2016-05-09T11:15:41Z] <JeanFred> Deployed latest from Git: 4f82b32 (T134728)

JeanFred closed this task as Resolved.EditedMay 9 2016, 11:16 AM
JeanFred triaged this task as Medium priority.
JeanFred added a subscriber: JeanFred.

Link does <s>not</s> look pretty :)

My fault. It should definitely have read "less ugly" :)

My fault. It should definitely have read "less ugly" :)

What a slip! I did mean to write « does look pretty » XD