| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 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 | ||||