From 3abeeeda7dc7ca6abdcb2b0fa6dc1895a52007f6 Mon Sep 17 00:00:00 2001 From: drash-course <35761976+drash-course@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:13:38 +0100 Subject: [PATCH] fix english in comments --- src/lib/strings/handles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/strings/handles.ts b/src/lib/strings/handles.ts index f7d8e4f439..dac1e7bea2 100644 --- a/src/lib/strings/handles.ts +++ b/src/lib/strings/handles.ts @@ -59,9 +59,9 @@ export function toSanitizedUnicodeHandle(asciiHandle: string): string { /// homograph attack (https://en.wikipedia.org/wiki/IDN_homograph_attack) function isPossibleHomographAttack(unicodeLabel: string): boolean { let hasNonRFC2181Characters = false - // We check for characters belonging to any script that has problematic homoglyphs, + // We check for characters belonging to any script that has problematic homographs, // and only allow using __at most__ one of them. - // Legitimate domains in the wild not mix those scripts. + // Detection is based on the observation that legitimate domains in the wild do not mix those scripts. // Note: you can use https://symbl.cc/en/unicode-table/ as reference let hasLatin = false let hasIPA = false