MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / foldText

Function foldText

frontend/src/components/forms/Channel.jsx:545–549  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

543
544 // Case- and accent-insensitive.
545 const foldText = (text) =>
546 text
547 .toLowerCase()
548 .normalize('NFD')
549 .replace(/[\u0300-\u036f]/g, '');
550
551 // Every term must match, against name and id combined.
552 const tvgFilterTerms = foldText(tvgFilter).split(/\s+/).filter(Boolean);

Callers 1

ChannelFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected