Skip to content

Commit

Permalink
getDomain helper fix, was breaking for mailto://
Browse files Browse the repository at this point in the history
  • Loading branch information
michael pearson committed Nov 10, 2012
1 parent f417316 commit a3b2ff3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.js
@@ -1,7 +1,7 @@
/*
Thanks for using tldtools, it's distributed under the MIT License (MIT)
Copyright (c) 2011 Michael Pearson <ossdev@cloudspark.freshbutter.me>
Copyright (c) 2011 Michael Pearson <npm@m.bip.io>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Expand Down Expand Up @@ -308,7 +308,7 @@ TLD_TOOLS = {
return (this.domain != '' && this.tld != '');
},
'getDomain' : function() {
return this.domain + '.' + this.tld;
return urlTokens.hostname;
}
}
};
Expand Down
6 changes: 3 additions & 3 deletions package.json
@@ -1,11 +1,11 @@
{
"name": "tldtools",
"description": "Extracts a domain into its component parts (node-url wrapper), performs domain inspection functions",
"version": "0.0.6",
"version": "0.0.7",
"maintainers": [
{
"name": "Michael Pearson",
"email": "ossdistro@cloudspark.freshbutter.me"
"email": "npm@m.bip.io"
}
],
"main": "./index",
Expand All @@ -16,6 +16,6 @@
"keywords": ["domain", "tld", "extract", "parse", "subdomain", "domain tools", "whois"],
"repository" : {
"type": "git" ,
"url": "http://github.com/mjpearson/tldtools.git"
"url": "https://github.com/mjpearson/node-tldtools.git"
}
}

0 comments on commit a3b2ff3

Please sign in to comment.