MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / normalizeLooseFromNormalized

Function normalizeLooseFromNormalized

dashboard/src/utils/pluginSearch.js:7–8  ·  view source on GitHub ↗
(normalized)

Source from the content-addressed store, hash-verified

5export const normalizeStr = (s) => (s ?? "").toString().toLowerCase().trim();
6
7const normalizeLooseFromNormalized = (normalized) =>
8 normalized.replace(/[\s_-]+/g, "").replace(/[()()【】\[\]{}·•]+/g, "");
9
10export const normalizeLoose = (s) =>
11 normalizeLooseFromNormalized(normalizeStr(s));

Callers 2

normalizeLooseFunction · 0.85
pluginSearch.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected