1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-17 17:34:48 +00:00
TiddlyWiki5/core/modules/filters/url-ops.js
2023-01-18 09:06:34 +00:00

26 lines
592 B
JavaScript

/*\
title: $:/core/modules/filters/url-ops.js
type: application/javascript
module-type: filteroperator
Filter operators for URL operations
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports["setquerystring"] = function(source,operator,options) {
var name = operator.operands.length >= 1 ? operator.operands[0] : null,
value = operator.operands.length >= 2 ? operator.operands[1] : "",
results = [];
source(function(tiddler,title) {
results.push($tw.utils.setQueryStringParameter(title,name,value));
});
return results;
};
})();