1
Fork 0

search.js: give pathSplitter a type signature

This commit is contained in:
binarycat 2025-03-04 14:25:04 -06:00
parent 78b92f08f9
commit 9581f1935b

View file

@ -2740,7 +2740,11 @@ class DocSearch {
return [displayPath, href, `${exactPath}::${name}`];
};
// @ts-expect-error
/**
*
* @param {string} path
* @returns {string}
*/
function pathSplitter(path) {
const tmp = "<span>" + path.replace(/::/g, "::</span><span>");
if (tmp.endsWith("<span>")) {