Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with half opening parens and surrounding bbcode #1

Open
ghost opened this issue Apr 30, 2011 · 2 comments
Open

Issue with half opening parens and surrounding bbcode #1

ghost opened this issue Apr 30, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 30, 2011

Hi,

In this example:

[br](bron http://www.example.com/)[br]

Linkify parses as:

[br](bron [url]http://www.example.com/)[br][/url]

while one would expect it to parse

[br](bron [url]http://www.example.com/[/url])[br]

Is there any way around this? :)

@jmrware
Copy link
Owner

jmrware commented May 2, 2011

Yes this is a known shortcoming of this version of LinkifyURL. If you read Note 2 on the LinkifyURL main test page you will see other examples of URLs which are incorrectly matched.

I'm looking into another way of coding this that will correct this erroneous matching (but doing this correctly for all cases is quite tricky!) I have noted this limitation as an issue and will be working on it.

Thanks for the report.

@ghost
Copy link
Author

ghost commented May 7, 2011

Thanks for the feedback, I didn't recognize this particular pattern to be incorrectly matched hence the issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant