i use npm install bbcode, and i make a source test file to test, the following url related tests failed!
1) should parse [url="<url>"] to <a href=<url>>
2) should parse [url='<url>'] to <a href=<url>>
3) should parse [link=<url>]test[/link]
4) should parse [link="<url>"]test[/link]
5) should parse [link='<url>']test[/link]
6) as attribute with quotes - [img="<img>"] to <img src=<img>>
7) as attribute with single quotes - [img='<img>'] to <img src=<img>>
detail:
1) bcrypt #parse should parse [url] and [link] should parse [url="<url>"] to <a href=<url>>:
actual expected
<a href[url="http://example.com">"]url</a<span style="color: red">[/url]</span>