"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/request/node_modules/qs/lib/formats.js" (7 Feb 2017, 387 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 };