Gerrit: Avoid breaking full phabricator URLs

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.


Gerrit: Avoid breaking full phabricator URLs

What this fix does is it fixes this:

T12345" target="_blank">https://phabricator.wikimedia.org/T12345

so that it will look like:


Also this dosent affect correct linking of plain text e.g. T1.

This regex is from @Thiemo Mättig (WMDE)

However, one thing found in testing is that it will highlight
https://phabricator.wikimedia.org/ and T12345 seperately while
both still link correctly to the correct webpage.
It should not be noticable unless someone hovers over it.

This seems to be the best fix we can do for this without having to break
other links in the process.

Thanks @Thiemo Mättig (WMDE) for your suggestion here

Bug: T75997
Change-Id: I69be5bf547bf0017902db67b56cea9234d37aabb


PaladoxAuthored on Jul 31 2016, 6:06 PM
jayvdbCommitted on Aug 2 2016, 1:38 AM

Commit No Longer Exists

This commit no longer exists in the repository.