normaliseSignals function ✓ 100.0%
Last updated: 2026-02-25T14:02:03.587Z
Location
Metrics
LOC: 9
Complexity: 1
Params: 1
Coverage: 100.0% (1/1 lines, 23x executed)
Signature
normaliseSignals(input: string): : string
Source Code
function normaliseSignals(input: string): string {
return input
.toLowerCase()
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/[^a-z0-9\s]+/g, " ")
.replace(/\s+/g, " ")
.trim();
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| storeLearnedEntry | calls |
| removeLearnedEntryBySignals | calls |
| buildSignalsFromRule | calls |