diff --git a/package.json b/package.json index 665289f..faf96b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "connection-string", - "version": "4.2.2", + "version": "4.3.0", "description": "Advanced URL Connection String parser + generator.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/test/main.spec.ts b/test/main.spec.ts index c023085..2229fe7 100644 --- a/test/main.spec.ts +++ b/test/main.spec.ts @@ -325,6 +325,7 @@ describe('params', () => { describe('with repeated names', () => { it('must join values into array', () => { expect(parse('?one=1&one=2&two=3,4&two=5')).to.eql({params: {one: ['1', '2'], two: ['3', '4', '5']}}); + expect(parse('?one=1&one=hello+here,2')).to.eql({params: {one: ['1', 'hello here', '2']}}); }); it('must join csv values into array', () => { expect(parse('?one=1&one=2,3')).to.eql({params: {one: ['1', '2', '3']}});