Sha256: b41165901f554da41f3b1b854ad8c968b71a88f4ef37790720329796f83c1840

Contents?: true

Size: 1.06 KB

Versions: 74

Compression:

Stored size: 1.06 KB

Contents

<script type="text/javascript">
// parseUri 1.2.2
// (c) Steven Levithan <stevenlevithan.com>
// MIT License
function parseUri (str) {
  var o = parseUri.options,
    m   = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
    uri = {},
    i   = 14;
  while (i--) uri[o.key[i]] = m[i] || "";
  uri[o.q.name] = {};
  uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
    if ($1) uri[o.q.name][$1] = $2;
  });
  return uri;
};

parseUri.options = {
  strictMode: false,
  key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
  q:   {
    name:   "queryKey",
    parser: /(?:^|&)([^&=]*)=?([^&]*)/g
  },
  parser: {
    strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
    loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
  }
};
</script>

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
muck-engine-0.4.6 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.5 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.4 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.3 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.2 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.1 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.0 app/views/scripts/_parse_uri.html.erb
muck-engine-0.3.3 app/views/scripts/_parse_uri.html.erb
muck-engine-0.3.2 app/views/scripts/_parse_uri.html.erb
muck-engine-0.3.1 app/views/scripts/_parse_uri.html.erb
muck-engine-0.3.0 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.27 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.26 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.25 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.24 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.23 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.22 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.21 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.20 app/views/scripts/_parse_uri.html.erb
muck-engine-0.2.19 app/views/scripts/_parse_uri.html.erb