Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isValidRev(): reject revs with more than one dash
There are various places in the code where revs are assumed to include a single dash character: * pouchdb-adapter-idb/src/index.js:533: doc._rev = '0-' + (parseInt(oldRev.split('-')[1], 10) + 1); * pouchdb-adapter-leveldb-core/src/index.js:1402: oldRev ? '0-' + (parseInt(oldRev.split('-')[1], 10) + 1) : '0-1'; * pouchdb-core/src/adapter.js:249: var parts = doc._rev.split('-'); * pouchdb-core/src/adapter.js:599: var splittedRev = doc._rev.split('-'); * pouchdb-core/src/adapter.js:623: const pathId = doc._rev.split('-')[1]; * pouchdb-merge/src/revExists.js:4: var splitRev = rev.split('-'); Follow-up to pouchdb#8931
- Loading branch information