Page MenuHomePhabricator

Invalid (linktrail/linkprefix?) regexp for hi wp
Closed, ResolvedPublic

Description

Try any Hindi page. Ex: http://localhost:8000/hi/%E0%A4%95%E0%A5%83%E0%A4%B7%E0%A5%8D%E0%A4%A3%E0%A4%BF%E0%A4%95%E0%A4%BE

You will find the error output in the terminal where you started the server:

[SyntaxError: Invalid regular expression: /^([a-z\x{0900}-\x{0963}\x{0966}-\x{A8E0}-\x{A8FF}]+)/: Range out of order in character class]


Version: unspecified
Severity: normal

Details

Reference
bz52855

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:46 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz52855.

This is a known issue. Probably a difference between PHP and JS char class syntax that we could handle in our regexp conversion code.

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