Sha256: ea348f751639e2de0d80e2879cb361ca40be01ccb91611dd79145bdea6a2bfe3

Contents?: true

Size: 483 Bytes

Versions: 62

Compression:

Stored size: 483 Bytes

Contents

define(function () {

    /**
     * Gets full query as string with all special chars decoded.
     */
    function getQuery(url) {
        url = url.replace(/#.*/, ''); //removes hash (to avoid getting hash query)
        var queryString = /\?[a-zA-Z0-9\=\&\%\$\-\_\.\+\!\*\'\(\)\,]+/.exec(url); //valid chars according to: http://www.ietf.org/rfc/rfc1738.txt
        return (queryString)? decodeURIComponent(queryString[0].replace(/\+/g,' ')) : '';
    }

    return getQuery;
});

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.5.3 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.5.2 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.5.1 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.5.0 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.6 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.5 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.4 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.3 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.2 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.1 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.4.0 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.30 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.29 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.28 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.27 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.26 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.25 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.24 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.23 node_modules/bower/node_modules/mout/src/queryString/getQuery.js
trusty-festivity-extension-2.3.22 node_modules/bower/node_modules/mout/src/queryString/getQuery.js