mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
fix: url_encode throws on undefined value, fixes #479
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
export const urlDecode = (x: string) => x.split('+').map(decodeURIComponent).join(' ')
|
||||
export const urlEncode = (x: string) => x.split(' ').map(encodeURIComponent).join('+')
|
||||
import { stringify } from '../../util/underscore'
|
||||
|
||||
export const urlDecode = (x: string) => stringify(x).split('+').map(decodeURIComponent).join(' ')
|
||||
export const urlEncode = (x: string) => stringify(x).split(' ').map(encodeURIComponent).join('+')
|
||||
|
||||
Reference in New Issue
Block a user