parse-domain
Advanced tools
Comparing version 0.2.1 to 0.2.2
"use strict"; | ||
var urlParts = /^(https?:\/\/)?(.+@)?(.+?)(:\d{2,5})?(\/.*)?$/,// 1 = protocol, 2 = auth, 3 = domain, 4 = port, 5 = path | ||
var urlParts = /^(https?:\/\/)?(.+@)?(.+?)(:\d{2,5})?([/?].*)?$/,// 1 = protocol, 2 = auth, 3 = domain, 4 = port, 5 = path | ||
knownTlds = require("./tld.js"), | ||
@@ -5,0 +5,0 @@ dot = /\./g; |
{ | ||
"name": "parse-domain", | ||
"version": "0.2.1", | ||
"description": "Splits an url into sub-domain, domain and top-level-domain", | ||
"version": "0.2.2", | ||
"description": "Splits an url into sub-domain, domain and effective top-level-domain", | ||
"main": "./lib/parseDomain.js", | ||
@@ -32,4 +32,4 @@ "scripts": { | ||
"chai": "^3.5.0", | ||
"mocha": "^2.4.5" | ||
"mocha": "^3.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
292515