Skip to main content

Function: containsHomoglyphs()

containsHomoglyphs(input): ThreatFinding[]
Defined in: validators.ts:379 Detect lookalike Unicode characters (Cyrillic / Greek glyphs that render identically to common ASCII letters). The classic phishing trick is paypaӏ.com (ӏ instead of l); this detector catches the building blocks. Use normalizeUnicode to replace homoglyphs with their ASCII equivalents — this function only flags their presence.

Parameters

input

string String to scan.

Returns

ThreatFinding[] Empty array, or one finding of type "homoglyph" (the first matched lookalike).