is-url icon indicating copy to clipboard operation
is-url copied to clipboard

FALSE negative: www.google.de

Open ffischer1984 opened this issue 7 years ago • 1 comments

IMHO it should be an url ;)

ffischer1984 avatar Sep 20 '18 14:09 ffischer1984

www.google.com is also not a URL.

From the source:

/**
 * RegExps.
 * A URL must match #1 and then at least one of #2/#3.
 * Use two levels of REs to avoid REDOS.
 */

var protocolAndDomainRE = /^(?:\w+:)?\/\/(\S+)$/;

I believe this project follows the definition of URL given in RFC 1738 (relevant bit).

davisjam avatar Sep 20 '18 14:09 davisjam