Merge pull request #186 from SjonHortensius/js-export-btoa-fix

Fix base64 padding with multiple =-signs. An equal amount of dots is …
This commit is contained in:
Dan Sosedoff 2016-10-11 18:12:10 -05:00 committed by GitHub
commit 23e6b02ae4

View File

@ -96,7 +96,7 @@ function explainQuery(query, cb) { apiCall("post", "/explain", { quer
function disconnect(cb) { apiCall("post", "/disconnect", {}, cb); }
function encodeQuery(query) {
return window.btoa(query).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, ".");
return window.btoa(query).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ".");
}
function buildSchemaSection(name, objects) {