You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

decode-uri-component.js 350B

1234567891011
  1. // Copyright 2017 Simon Lydell
  2. // X11 (“MIT”) Licensed. (See LICENSE.)
  3. var decodeUriComponent = require("decode-uri-component")
  4. function customDecodeUriComponent(string) {
  5. // `decodeUriComponent` turns `+` into ` `, but that's not wanted.
  6. return decodeUriComponent(string.replace(/\+/g, "%2B"))
  7. }
  8. module.exports = customDecodeUriComponent