1 |
3a515b92
|
cagy
|
var decodeUriComponent = require("decode-uri-component")
|
2 |
|
|
|
3 |
|
|
function customDecodeUriComponent(string) {
|
4 |
|
|
// `decodeUriComponent` turns `+` into ` `, but that's not wanted.
|
5 |
|
|
return decodeUriComponent(string.replace(/\+/g, "%2B"))
|
6 |
|
|
}
|
7 |
|
|
|
8 |
|
|
module.exports = customDecodeUriComponent
|