Skip to content

Instantly share code, notes, and snippets.

@romainmenke
Created September 14, 2023 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romainmenke/6a578290b240aa9ba3c6e726ecab96a4 to your computer and use it in GitHub Desktop.
Save romainmenke/6a578290b240aa9ba3c6e726ecab96a4 to your computer and use it in GitHub Desktop.
let aToZ = new Set('abcdefghijklmnopqrstuvwxyz'.split(''));
let aToZ_Match = /[a-z]/i;
for (let i = 0; i < 100000; i++) {
let char = String.fromCharCode(i);
if (aToZ.has(char)) continue;
if (!aToZ.has(char.toLowerCase())) continue;
if (aToZ_Match.test(char)) continue;
console.log(i, char, char.toLowerCase())
}
// 8490 'K' 'k'
// 74026 'K' 'k' (duplicate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment