Skip to content

Commit

Permalink
Rename suffix into publicSuffix for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
remusao committed Sep 8, 2017
1 parent 657ea0f commit 69ff298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function parse(url, validHosts, rules, _extractHostname) {
return {
valid,
hostname,
suffix,
publicSuffix,
domain,
subdomain,
};
Expand All @@ -54,7 +54,7 @@ function factory(options) {
return tldExists(rules, hostname);
},
getPublicSuffix: function (url) {
return parse(url, validHosts, rules, _extractHostname).suffix;
return parse(url, validHosts, rules, _extractHostname).publicSuffix;
},
getDomain: function (url) {
return parse(url, validHosts, rules, _extractHostname).domain;
Expand Down

0 comments on commit 69ff298

Please sign in to comment.