Skip to content

Commit 4af0688

Browse files
committed
fix(couchdbAttachments): content type does not have to be in base64 url string
1 parent f91fc6d commit 4af0688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/src/util/couchdbAttachments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ define([
99
'src/util/util'
1010
], function (Versioning, superagent, util) {
1111

12-
var base64DataUrlReg = /^data:([a-z]+\/[a-z]+);base64,/;
12+
var base64DataUrlReg = /^data:([a-z]+\/[a-z]+)?;base64,/;
1313

1414
function dataURLtoBase64(data) {
1515
var pos;

0 commit comments

Comments
 (0)