We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c85203 commit 7505bedCopy full SHA for 7505bed
packages/node_modules/pouchdb-core/src/adapter.js
@@ -195,7 +195,7 @@ function isNotSingleDoc(doc) {
195
}
196
197
function isValidRev(rev) {
198
- return typeof rev === 'string' && /^\d+-/.test(rev);
+ return typeof rev === 'string' && /^\d+-[^-]*$/.test(rev);
199
200
201
class AbstractPouchDB extends EventEmitter {
tests/integration/test.basics.js
@@ -271,6 +271,7 @@ adapters.forEach(function (adapter) {
271
[
272
() => '-format',
273
() => 'bad-format',
274
+ () => '1-ok-bad',
275
() => ({}),
276
() => ({ toString:'2-abc' }),
277
() => ({ toString:'2-abc', indexOf:777 }),
0 commit comments