dcwatson / bbcode

A pure python bbcode parser and formatter.
BSD 2-Clause "Simplified" License
68 stars 17 forks source link

Parsing links not working correctly #15

Closed nookiepl closed 9 years ago

nookiepl commented 9 years ago

Hi,

There is problem with parsing links. If source string contains more than one url with same domain (?), rest of them are repeated by first two.

import bbcode
p = bbcode.Parser()
p.parse("http://github.com/ http://example.org http://github.com/dcwatson/")

Result: 'http://github.com/dcwatson/ http://example.org http://github.com/dcwatson/'

dcwatson commented 9 years ago

Thanks for the report. I should have known better than to use id()! Just released 1.0.20 to PyPI.