fix link detection issue.

Fix links not being detected if there are any uppercase characters in the protocol (such as "Https" in the example project)