make detectURLsInText less sensitive to spacing around hrefs