NikolayRys / Likely

The social sharing buttons that aren’t shabby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add URL normalization

iamakulov opened this issue · comments

There’re cases when people specify URLs that seem correct (e.g. //google.com) but can’t be understood by some social networks (e.g. Facebook). It would be great if Likely recognized such URLs and auto-corrected them.

I believe auto-correction should handle the following cases:

  • An URL with // instead of a protocol: //google.comhttp://google.com
  • An URL without a protocol: google.comhttp://google.com

PRs are welcome!

I consider this to be an area user's responsibility.