Skip to content

Commit

Permalink
fix english in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
drash-course committed Dec 11, 2024
1 parent 654a332 commit 3abeeed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/strings/handles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3abeeed

Please sign in to comment.