question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

options to check for protocol-less URLs w/ TLD whitelist

See original GitHub issue

i was hoping exact would be the option i need based on https://github.com/kevva/url-regex/issues/12#issuecomment-97568552, but i don’t think you guys have revisited this.

what’s the possibility of this? would using https://github.com/stephenmathieson/node-tlds as a whitelist not be sufficient?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmuellercommented, Nov 25, 2016

fwiw, pulled the regex out of https://github.com/segmentio/is-human-url

0reactions
kevvacommented, May 23, 2017

I’m considering adding this, though I need a better option name than strict. It’s too similar to exact.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices - Use URL Properties to Whitelist Web Objects
URL properties, such as URL, URL.Host, URL.Host.BelongsToDomains, and others, can be used in the criteria of rules to whitelist web objects.
Read more >
What protocol is loaded when using protocol-relative URLs?
I just started to test the idea behind "protocol less Urls". The problem I´m looking to solve is: on a https page I...
Read more >
Use Tag Manager with a Content Security Policy
There are several ways to do this, such as the use of a nonce or a hash. ... should instead include the non-secure...
Read more >
No protocol-relative URLs | webhint documentation
The hint checks for protocol-relative URLs. Note: Currently the hint does not check for protocol-relative URLs inside of stylesheets and scripts. Let's presume ......
Read more >
The Anatomy of a Full Path URL - By zvelo
In this post, we take a step back and cover the basics—the individual structural elements of a full path URL (Uniform Resource Locator)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found