search.js: give pathSplitter a type signature
This commit is contained in:
parent
78b92f08f9
commit
9581f1935b
1 changed files with 5 additions and 1 deletions
|
@ -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>")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue