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-3.2.10 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.9 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.8 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.7 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.6 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.5 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.4 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.3 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.1 app/views/scripts/_parse_uri.html.erb
muck-engine-3.2.0 app/views/scripts/_parse_uri.html.erb
muck-engine-3.1.0 app/views/scripts/_parse_uri.html.erb
muck-engine-3.0.8 app/views/scripts/_parse_uri.html.erb
muck-engine-3.0.7 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.34 app/views/scripts/_parse_uri.html.erb
muck-engine-3.0.6 app/views/scripts/_parse_uri.html.erb
muck-engine-3.0.5 app/views/scripts/_parse_uri.html.erb
muck-engine-3.0.4 app/views/scripts/_parse_uri.html.erb
muck-engine-3.0.3 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.33 app/views/scripts/_parse_uri.html.erb
muck-engine-0.4.32 app/views/scripts/_parse_uri.html.erb