mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 20:09:57 +00:00
Use $tw.utils.encodeURIComponentExtended for consistency with encodeuricomponent operator
This commit is contained in:
parent
39b7a4fb71
commit
5b53a14903
@ -45,14 +45,14 @@ function saveArchive(archivePath) {
|
|||||||
}
|
}
|
||||||
for(const recipeInfo of $tw.mws.store.listRecipes()) {
|
for(const recipeInfo of $tw.mws.store.listRecipes()) {
|
||||||
console.log(`Recipe ${recipeInfo.recipe_name}`);
|
console.log(`Recipe ${recipeInfo.recipe_name}`);
|
||||||
saveJsonFile(`recipes/${encodeURIComponent(recipeInfo.recipe_name)}.json`,recipeInfo);
|
saveJsonFile(`recipes/${$tw.utils.encodeURIComponentExtended(recipeInfo.recipe_name)}.json`,recipeInfo);
|
||||||
}
|
}
|
||||||
for(const bagInfo of $tw.mws.store.listBags()) {
|
for(const bagInfo of $tw.mws.store.listBags()) {
|
||||||
console.log(`Bag ${bagInfo.bag_name}`);
|
console.log(`Bag ${bagInfo.bag_name}`);
|
||||||
saveJsonFile(`bags/${encodeURIComponent(bagInfo.bag_name)}/meta.json`,bagInfo);
|
saveJsonFile(`bags/${$tw.utils.encodeURIComponentExtended(bagInfo.bag_name)}/meta.json`,bagInfo);
|
||||||
for(const title of $tw.mws.store.getBagTiddlers(bagInfo.bag_name)) {
|
for(const title of $tw.mws.store.getBagTiddlers(bagInfo.bag_name)) {
|
||||||
const tiddlerInfo = $tw.mws.store.getBagTiddler(title,bagInfo.bag_name);
|
const tiddlerInfo = $tw.mws.store.getBagTiddler(title,bagInfo.bag_name);
|
||||||
saveJsonFile(`bags/${encodeURIComponent(bagInfo.bag_name)}/tiddlers/${encodeURIComponent(title)}.json`,tiddlerInfo.tiddler);
|
saveJsonFile(`bags/${$tw.utils.encodeURIComponentExtended(bagInfo.bag_name)}/tiddlers/${$tw.utils.encodeURIComponentExtended(title)}.json`,tiddlerInfo.tiddler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ SqlTiddlerStore.prototype.processOutgoingTiddler = function(tiddlerFields,tiddle
|
|||||||
tiddlerFields,
|
tiddlerFields,
|
||||||
{
|
{
|
||||||
text: undefined,
|
text: undefined,
|
||||||
_canonical_uri: `/bags/${encodeURIComponent(bag_name)}/tiddlers/${encodeURIComponent(tiddlerFields.title)}/blob`
|
_canonical_uri: `/bags/${$tw.utils.encodeURIComponentExtended(bag_name)}/tiddlers/${$tw.utils.encodeURIComponentExtended(tiddlerFields.title)}/blob`
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user