Comparing version 0.0.2 to 0.0.3
@@ -114,2 +114,3 @@ var nodeUrl = require('url'); | ||
if (suffix){ | ||
suffix = encodeURIComponent(suffix); | ||
return this.path(this.path(), suffix); | ||
@@ -116,0 +117,0 @@ } else { |
@@ -5,3 +5,3 @@ { | ||
"keywords" : ["url", "uri"], | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"bugs": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/cainus/urlgrey/issues" |
@@ -122,4 +122,4 @@ var should = require('should'); | ||
var url = "http://asdf.com/path?asdf=1234#frag"; | ||
urlgrey(url).child('kid') | ||
.toString().should.equal('http://asdf.com/path/kid?asdf=1234#frag'); | ||
urlgrey(url).child('kid here') | ||
.toString().should.equal('http://asdf.com/path/kid%20here?asdf=1234#frag'); | ||
}); | ||
@@ -126,0 +126,0 @@ it("returns the last item in the path if there is no input", function(){ |
23140
9
396