este-library-oldschool
Version:
Library for github.com/steida/este.git
17 lines (16 loc) • 564 B
JavaScript
// Generated by github.com/steida/coffee2closure 900.1.18
/**
@fileoverview URI utils.
@namespace este.uri
*/
goog.provide('este.uri.utils');
goog.require('goog.uri.utils');
/**
Returns "path?query" from the URL - i.e. excludes protocol, host, port and fragment
@param {string} uri
*/
este.uri.utils.getPathAndQuery = function(uri) {
var pieces;
pieces = goog.uri.utils.split(uri);
return goog.uri.utils.buildFromEncodedParts(null, null, null, null, pieces[goog.uri.utils.ComponentIndex.PATH], pieces[goog.uri.utils.ComponentIndex.QUERY_DATA]);
};