MCPcopy Create free account
hub / github.com/MALSync/MALSync / titleSearch

Function titleSearch

src/utils/quicklinksBuilder.ts:32–42  ·  view source on GitHub ↗
(url, title, id)

Source from the content-addressed store, hash-verified

30}
31
32export function titleSearch(url, title, id) {
33 return searchSyntax(
34 url
35 .replace('{searchtermPlus}', '{searchterm(+)}')
36 .replace('{searchtermMinus}', '{searchterm(-)}')
37 .replace('{searchtermUnderscore}', '{searchterm(_)}')
38 .replace('{searchtermRaw}', '{searchterm[noEncode,noLowercase]}')
39 .replace('{cacheId}', id),
40 title,
41 );
42}
43
44type option = 'noEncode' | 'noSpecial' | 'noLowercase' | 'specialReplace';
45

Callers 2

simplifyObjectFunction · 0.85

Calls 1

searchSyntaxFunction · 0.85

Tested by

no test coverage detected