1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-06-20 23:44:07 +00:00
Mario Pietsch 8aa558eb2c
Remove module function wrapper and add matching configurations for dprint and eslint (#7596)
* remove blks first try

* dprint.json seems to be OK, some forgotten functions

* add some more space-after-keyword settings

* server remove blks

* add **/files to dprint exclude

* dprint.js fixes a typo

* add boot.js and bootprefix.js to dprint exclude

* dprint change dprint.json

* add dprint fmt as script

* remove jslint comments

* fix whitespace

* fix whitespace

* remove function-wrapper from geospatial plugin

* fix whitespace

* add function wrapper to dyannotate-startup

* remove dpring.json
2025-03-21 17:22:57 +00:00

23 lines
514 B
JavaScript

/*\
title: $:/plugins/tiddlywiki/aws/encodings.js
type: application/javascript
module-type: filteroperator
Filter operator for applying encodeuricomponent() to each item, with the addition of converting single quotes to %27, as required by AWS
\*/
"use strict";
/*
Export our filter functions
*/
exports["aws-encodeuricomponent"] = function(source,operator,options) {
var results = [];
source(function(tiddler,title) {
results.push(encodeURIComponent(title).replace(/'/g,"%27"));
});
return results;
};