Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
387 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var replace = String.prototype.replace;
|
---|
| 4 | var percentTwenties = /%20/g;
|
---|
| 5 |
|
---|
| 6 | module.exports = {
|
---|
| 7 | 'default': 'RFC3986',
|
---|
| 8 | formatters: {
|
---|
| 9 | RFC1738: function (value) {
|
---|
| 10 | return replace.call(value, percentTwenties, '+');
|
---|
| 11 | },
|
---|
| 12 | RFC3986: function (value) {
|
---|
| 13 | return value;
|
---|
| 14 | }
|
---|
| 15 | },
|
---|
| 16 | RFC1738: 'RFC1738',
|
---|
| 17 | RFC3986: 'RFC3986'
|
---|
| 18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.