MCPcopy Index your code
hub / github.com/crisxuan/bestJavaer / normalizeRoute

Function normalizeRoute

assets/article-cards.js:398–408  ·  view source on GitHub ↗
(route)

Source from the content-addressed store, hash-verified

396 }
397
398 function normalizeRoute(route) {
399 var normalized = (route || '').replace(/^\/+/, '').replace(/\.md$/i, '').replace(/\/+$/, '');
400
401 try {
402 normalized = decodeURIComponent(normalized);
403 } catch (error) {
404 return normalized;
405 }
406
407 return normalized;
408 }
409
410 function renderArticleCards() {
411 var route = getCurrentRoute();

Callers 2

getSidebarLocaleFunction · 0.85
getActiveSidebarHrefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected