blob: 0739c20f5e60a69cdf978b89e9d794bd44ced096 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001var decodeUriComponent = require("decode-uri-component")
2
3function customDecodeUriComponent(string) {
4 // `decodeUriComponent` turns `+` into ` `, but that's not wanted.
5 return decodeUriComponent(string.replace(/\+/g, "%2B"))
6}
7
8module.exports = customDecodeUriComponent