MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / normalise

Function normalise

client/js-client/src/rlClient.js:109–117  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

107 }
108
109 function normalise(input) {
110 var normalised, delim = "#";
111 if (params.query_delimiter === "#") {
112 delim = "?";
113 }
114
115 normalised = input.replace(new RegExp("\\" + delim + ".*"), "").replace(/[+ ]/, "%20", "g");
116 return rewrite(normalised, params.rewrite);
117 }
118
119 function pageId(url, keep) {
120 var normalised = normalise(url),

Callers 2

pageIdFunction · 0.85
actionUrlFunction · 0.85

Calls 1

rewriteFunction · 0.85

Tested by

no test coverage detected