Feature #11494

Don't turn #nnn with leading zeros into links

Added by Alex Shulgin over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:2.1.0
Resolution:Fixed

Description

Sometimes a user would post an issue containing something like
"#01234" in the description/update. If there happen to be an issue
with that number (and it is visible by the current user, which is
always true for site admin,) the text would be converted to a link
"#1234" w/o the leading zero when rendering the issue on the web.
This was a problem when a user didn't mean to refer to an issue
numbered 1234, but was using it in some other environment-specific
context.

0007-Preserve-leading-zeros-in-nnn-issue-links.patch Magnifier (1.76 KB) Alex Shulgin, 2012-07-24 13:55

Associated revisions

Revision 10077
Added by Jean-Philippe Lang over 5 years ago

Don't turn #nnn with leading zeros into link (#11494).

History

#1 Updated by Jean-Philippe Lang over 5 years ago

Maybe a better option is to not display it as a link since it's not the exact issue id?

#2 Updated by Alex Shulgin over 5 years ago

Jean-Philippe Lang wrote:

Maybe a better option is to not display it as a link since it's not the exact issue id?

Well, I don't see why not, indeed. :-)

#3 Updated by Jean-Philippe Lang over 5 years ago

  • Tracker changed from Patch to Feature
  • Subject changed from Preserve leading zeros in #nnn issue links to Don't turn #nnn with leading zeros into links
  • Status changed from New to Closed
  • Target version set to 2.1.0
  • Resolution set to Fixed

Committed in r10077.

Also available in: Atom PDF