url.js 307 B

123456789
  1. 'use strict';
  2. exports.__esModule = true;
  3. exports.encode = encode;
  4. function encode(data) {
  5. return data.replace(/"/g, '\'').replace(/%/g, '%25').replace(/</g, '%3C').replace(/>/g, '%3E').replace(/&/g, '%26').replace(/#/g, '%23').replace(/\s+/g, ' ');
  6. };
  7. var decode = exports.decode = decodeURIComponent;