https://bugzilla.wikimedia.org/show_bug.cgi?id=73160

--- Comment #4 from [email protected] ---
This request sounds so harmless, but we're hitting some edge-cases here:

* Gerrit's Issue Tracker framework relies on the first group being the
  id of the issue tracker.

  So we cannot do something in the spirit of

    ([^a-zA-Z0-9/])T(\d+)

  as then, Gerrit would take the ([^a-zA-Z0-9/]) as task number.


* Gerrit's commentlinks cannot do non-capturing groups.

  So we cannot do something in the spirit of

    (?:[^a-zA-Z0-9/])T(\d+)

  .

* Gerrit's commentlinks cannot do lookbehinds

  So we cannot do something in the spirit of

    (?<![a-zA-Z0-9/])T(\d+)

  .


Since the Gerrit's commentlinks code is doing weird things to make
sure it is safe html, I guess it's easiest thing would be to patch Gerrit's
Issue Tracker framework to allow to specify which group number is the
issue tracker id.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to