erusev / parsedown

Better Markdown Parser in PHP
https://parsedown.org
MIT License
14.74k stars 1.12k forks source link

bug: inlineUrl creates wrong link #717

Open wvdongen opened 5 years ago

wvdongen commented 5 years ago

I'm using a text that contains a the following url: https://www.owasp.org/index.php/Cross-site_Scripting_(XSS). However, the wrong link is created because ")" is not matched in the regex. See screenshot:

image

aidantwoods commented 5 years ago

Thanks for reporting, I'll fix this for the upcoming release :)

wvdongen commented 4 years ago

@aidantwoods This might help: https://github.com/symfony/symfony/blob/5.0/src/Symfony/Component/Validator/Constraints/UrlValidator.php#L24