Made regex to detect links more powerful.