mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
feature: url_decode, working on #94
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user