feature: url_decode, working on #94

This commit is contained in:
harttle
2018-10-08 10:37:24 +08:00
parent d504c8107e
commit 6af631b77b
2 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -94,7 +94,8 @@ const filters = {
})
},
'upcase': str => stringify(str).toUpperCase(),
'url_encode': encodeURIComponent
'url_decode': x => x.split('+').map(decodeURIComponent).join(' '),
'url_encode': x => x.split(' ').map(encodeURIComponent).join('+')
}
function escape (str) {