Did someone say coffee?
Hevilmystic
said
:
Is there a reason Youtube videos don't embed if there is no http(s)://?
Yep, there is, and it's not limited to youtube either. Linkify does make an attempt to add the prefix in some cases, but I haven't developed it beyond the very basics and I'm not sure if I will.
Determining a url from a conglomerate of plain text is not as simple as it may seem.
I need all the clues I can get, and one of the best clues is the http prefix. The two consecutive forward slashes followed by a colon is also very handy.
www. is not reliable on it's own.
Awww.
^
That's kind of what I mean, though it's not the best example. But in my early testing I found quite number of cases where three w's followed by a full stop occurred in text that wasn't a url.
The other thing is not all urls have the w
ww.
h
ttp://puush.me/
for example. So the www is not a reliable way to determine a url.
Urls copied from the address-bar have the full prefix, so in most cases it's not a problem.
I think you'll find when a url is posted without the http prefix it's been typed rather and copy/pasted. Those people deserve a special kind of punishment, a combination of extreme pain, ridicule, and the words
Hyper Text Transfer Protocol
should be neatly branded into their skin. This may seem harsh but it's actually a kindness, and makes a good reminder that sloppy urls are bad.
It could be the url was posted with the intention of not having it embed, however the special punishment still stands as the share option was not used to avoid smiley corruption of the link.
12-Mar-2015 07:20:34
- Last edited on
12-Mar-2015 07:42:23
by
Indecent Act