Open Bug 663299 Opened 13 years ago Updated 4 months ago

Include close-parenthesis ")" in auto-linkification if there is an open-parenthesis "(" inside of the link that isn't already closed

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

People

(Reporter: BijuMailList, Unassigned)

References

Details

Attachments

(1 obsolete file)

Just noticed at bug 663292 comment 1

When we convert a text with URL to a link we intelligently stop linkifing URL at ")" character. And that is great...

But I suggest we should not do this if there is already a not closed "(".

That way we can keep the wiki URLs pretty.
Sure, I agree that would be great. If you can come up with a way to modify our regex to make that work and it doesn't break other things, we'd be happy to accept a patch. It seems like some fairly complex regex voodoo, though.
OS: Windows Vista → All
Hardware: x86 → All
Summary: Dont stop linkifing URL text at ")" if there is already a matching "(" not closed → Include close-parenthesis ")" in auto-linkification if there is an open-parenthesis "(" inside of the link that isn't already closed
what is RegExp currently used, or can you point me to the code at 
http://mxr.mozilla.org/bugzilla/source/
See Also: → 1241782
Attachment #9384493 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: