'use strict'; var replace = String.prototype.replace; var percentTwenties = /%20/g; var util = require('./utils'); var Format = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' }; module.exports = util.assign( { 'default': Format.RFC3986, formatters: { RFC1738: function (value) { return replace.call(value, percentTwenties, '+'); }, RFC3986: function (value) { return String(value); } } }, Format );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
formats.js | File | 521 B | 0644 |
|
index.js | File | 211 B | 0644 |
|
parse.js | File | 8.98 KB | 0644 |
|
stringify.js | File | 7.84 KB | 0644 |
|
utils.js | File | 6.48 KB | 0644 |
|