MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / getCurrentMarkdownPath

Function getCurrentMarkdownPath

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

Source from the content-addressed store, hash-verified

942 }
943
944 function getCurrentMarkdownPath(route) {
945 var path = (route || '').replace(/^\/+/, '');
946
947 if (!path || path === 'README' || /\/README$/.test(path)) {
948 return '';
949 }
950
951 if (!/\.md$/i.test(path)) {
952 path += '.md';
953 }
954
955 return path;
956 }
957
958 function isArticleIndexRoute(route) {
959 return (

Callers 2

renderArticleCardsFunction · 0.85
renderSeriesNavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected