willmcgugan / postmarkup

Automatically exported from code.google.com/p/postmarkup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comma after URL with auto_urls=true

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Enable auto_urls
2. Markup text: "Test text http://yandex.ru/das/?para=dsa-11&dsa+42.html, 
blabalbal"

What is the expected output? What do you see instead?
Comma after url will have wrapped by [url] tag

What version of the product are you using? On what operating system?
postmarkup==1.2.2, Python 3.4.3

Probably the problem of _re_url.
Correctly regular expression: _re_url = 
re.compile(r"(https?):(//)+([\d\w:#@%/;$()~_?\+\-=\\\.&]*)", re.MULTILINE | 
re.UNICODE)

Original issue reported on code.google.com by phone890...@gmail.com on 8 Aug 2015 at 1:47