Skip to content

Commit

Permalink
fix(internet): add Hebrew username charMapping (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
mordi-d committed Apr 4, 2024
1 parent ec3959c commit 5860783
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/modules/internet/char-mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,41 @@ const farsiMapping: { [key: string]: string } = Object.fromEntries([
['ژ', 'zh'],
['ی', 'y'],
]);
const hebrewMapping: { [key: string]: string } = Object.fromEntries([
['א', 'a'],
['ב', 'b'],
['ג', 'g'],
['ד', 'd'],
['ה', 'h'],
['ו', 'v'],
['ז', 'z'],
['ח', 'ch'],
['ט', 't'],
['י', 'y'],
['כ', 'k'],
['ך', 'kh'],
['ל', 'l'],
['ם', 'm'],
['מ', 'm'],
['ן', 'n'],
['נ', 'n'],
['ס', 's'],
['ע', 'a'],
['פ', 'f'],
['ף', 'ph'],
['צ', 'ts'],
['ץ', 'ts'],
['ק', 'k'],
['ר', 'r'],
['ש', 'sh'],
['ת', 't'],
['ו', 'v'],
]);
export const charMapping: { [key: string]: string } = {
...cyrillicMapping,
...greekMapping,
...arabicMapping,
...farsiMapping,
...armenianMapping,
...hebrewMapping,
};

0 comments on commit 5860783

Please sign in to comment.