new URL parsing #755
@@ Coverage Diff @@ ## master #755 +/- ## ===================================== Coverage 100% 100% ===================================== Files 15 16 +1 Lines 2723 2786 +63 Branches 536 542 +6 ===================================== + Hits 2723 2786 +63
public classes and functions
known edge cases
underscores are now allowed in all parts of a domain except the tld. Technically I think this might be slightly wrong - I think in theory the hostname cannot have underscores but subdomains can. However, consider the following two cases:
Without having an exhaustive list of TLDs it would be impossible to differentiate between these two. Therefore underscores are allowed, you could do further validation in a validator if you wanted.
Also, chrome currently accepts