1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Fix lint warnings by removing arrow functions

This commit is contained in:
Scott Sauyet 2023-09-09 20:28:54 -04:00
parent 6bcad4f1a4
commit 3dd9abb8ad

View File

@ -295,8 +295,8 @@ for `+`) to a string
$tw.utils.decodeTWURIList = function(s) {
return $tw.utils.decodeURIComponentSafe(
s.split('&')
.map(s => s.replaceAll('+', ' '))
.map(s => s.includes(' ') ? '[[' + s + ']]' : s)
.map(function(s) {return s.replaceAll('+', ' ')})
.map(function(s) {return s.includes(' ') ? '[[' + s + ']]' : s})
.join( ' ')
)
};