Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
377 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.encode = encode;
|
---|
7 | exports.decode = void 0;
|
---|
8 |
|
---|
9 | function encode(data) {
|
---|
10 | return data.replace(/"/g, "'").replace(/%/g, '%25').replace(/</g, '%3C').replace(/>/g, '%3E').replace(/&/g, '%26').replace(/#/g, '%23').replace(/\s+/g, ' ');
|
---|
11 | }
|
---|
12 |
|
---|
13 | const decode = decodeURIComponent;
|
---|
14 | exports.decode = decode; |
---|
Note:
See
TracBrowser
for help on using the repository browser.