correctly extract uris enclosed in square brackets
Problem
URIs enclosed in square brackets are not extracted
[https://domain-invalid.com]
is not detected
Fix
Allow [
to be in front of start of URI. Because we have square brackets
allowed (traditionally) for path/parameters we remove a trailing closing square
bracket if there's no matching left square bracket