bugfix: ignore ) and ] at the end of urls