terribleMia’s avatarterribleMia’s Twitter Archive—№ 8,742

  1. …in reply to @potch
    potch Safe for our current content, but maybe worth improving just in case. I think that's the same problem that punycode.js solves…
    1. …in reply to @TerribleMia
      potch const punycode = require("punycode") const unicodeRange = (str) => { const chars = punycode.ucs2.decode(str).map((c) => U+${c.toString(16)}); return chars.filter((c, i) => chars.indexOf(c) === i).join(','); };