Issues

Issue #2328 resolved

Wiki is dropping closing parens in URLs (BB-1087)

Maya Studios
created an issue

Currently, for URLs in a ticket text the text parser will include brackets in the URL which shouldn't be as brackets can be escaped. Examples:

Comments (3)

  1. Maya Studios reporter

    Just wanted to share an idea to solve this problem. Consider the following texts:

    This is a an http://en.wikipedia.org/wiki/Portal_(video_game) with brackets.
    
    This is a text (http://www.bitbucket.org) with brackets.
    

    In the first example a human being would assume that the brackets belong to the URL where as in the second example it doesn't.

    We do this because we "search" for matching opening bracket. If it's contained within the URL, the closing bracket belongs to the URL too. So you could simply do the same in your URL parser.

  2. Log in to comment