Parsing fails when there is a # in the username or password #3

Closed
doomhz opened this Issue Feb 16, 2013 · 0 comments

Comments

Projects
None yet
2 participants

doomhz commented Feb 16, 2013

Works when there is no #:

> muri("mongodb://user:pass@host:5555/dbname")
{ hosts: [ { host: 'host', port: 5555 } ],
  db: 'dbname',
  options: {},
  auth: { user: 'user', pass: 'pass' } }

Fails when there is a #:

> muri("mongodb://user:pas#s@host:5555/dbname")
{ hosts: [ { host: 'user', port: 27017 } ],
  db: ':pas',
  options: {} }

or

> muri("mongodb://use#r:pass@host:5555/dbname")
{ hosts: [ { host: 'use', port: 27017 } ],
  db: 'dbname',
  options: {} }

aheckmann closed this in 2c25e90 Feb 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment