Skip to content

express-pouchdb: removes "/" from db names #213

@gr2m

Description

@gr2m

Currently express-pouchdb is removing / from filenames before initializing db instances for the current request in

return sanitize(name) || sanitize('__' + name + '__');
(via )

At Hoodie, we currently use express-pouchdb inside our server and we pass our PouchDB constructor. Our user databases have the format user/:uuid. The problem now is that if I start listening to changes of db user/abc4567 in Hoodie, then no changes will ever happen because express-pouchdb internally renames the database to userabc4567

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions