4 ms·
Stuff gets really nasty when you start trying to reason about case insensitive string comparisons. For example, the following might return something different d
by slaymaker1907 3y ago
Stuff gets really nasty when you start trying to reason about case insensitive string comparisons. For example, the following might return something different depending on what your locale is:
"π".localeCompare("Π", undefined, { sensitivity: "accent" })
My machine says these are equal, but I've seen cases where network stacks consider domains as different if they feature the same Greek letter in a different case even though domain names are supposed to be case-insensitive.