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