Page MenuHomePhabricator

Use $linkPrefixCharset instead of the linkprefix regexp in WikiConfig
Closed, ResolvedPublic

Description

https://gerrit.wikimedia.org/r/#/c/91425/ will add a linkprefixcharset entry in the site info instead of the occasionally-broken linkprefix regexp. We should use that whenever it is available, but fall back to the old-style linkprefix regexp for backwards-compat.

This might also implicitly fix bug 52855.


Version: unspecified
Severity: normal

Details

Reference
bz56255

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:13 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz56255.

https://gerrit.wikimedia.org/r/#/q/Iaa7eaa44,n,z already changed the regexp syntax already, which breaks parsing of wikis with link prefix in production and rt testing. Test case:

node roundtrip-test.js --prefix ar 'مرس،_إب'

So we'll have to add handling for the new regexp syntax in the interim to avoid polluting the cache with broken link prefix handling.

Change 106106 had a related patch set uploaded by GWicke:
Fix link prefix and trail regexp handling

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

Change 106106 merged by jenkins-bot:
Fix link prefix and trail regexp handling

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