mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
parent
f9eed0dc87
commit
874318091e
@ -19,7 +19,12 @@ Export our filter functions
|
|||||||
exports.decodeuricomponent = function(source,operator,options) {
|
exports.decodeuricomponent = function(source,operator,options) {
|
||||||
var results = [];
|
var results = [];
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
results.push(decodeURIComponent(title));
|
var value = title;
|
||||||
|
try {
|
||||||
|
value = decodeURIComponent(title);
|
||||||
|
} catch(e) {
|
||||||
|
}
|
||||||
|
results.push(value);
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
@ -35,7 +40,12 @@ exports.encodeuricomponent = function(source,operator,options) {
|
|||||||
exports.decodeuri = function(source,operator,options) {
|
exports.decodeuri = function(source,operator,options) {
|
||||||
var results = [];
|
var results = [];
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
results.push(decodeURI(title));
|
var value = title;
|
||||||
|
try {
|
||||||
|
value = decodeURI(title);
|
||||||
|
} catch(e) {
|
||||||
|
}
|
||||||
|
results.push(value);
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user