The readme includes this text:
- Convert leetspeak to normal text
Modify the (static) SqueakyClean.clean() method to convert leetspeak to normal text. For simplicity we will only be using 4, 3, 0, 1 and 7 from the table.
I think it’s needlessly unclear which symbols should map to which (and need we really require clicking another link, looking through a table, etc.). Notably 1 is ambiguous and is used to map to both l and to i. Should 4 and 7 map to a and t or to A and T? I’m not sure the test cases punish either option, but I found myself stuck puzzling over the ambiguity, and I’m sure others will as well.
I propose:
3. Convert leetspeak to normal text
Modify the (static) SqueakyClean.clean() method to convert [leetspeak][leet-speak] to normal text.
For simplicity we will only be replacing 4, 3, 0, 1 and 7 with a, e, o, l, and t, respectively.
SqueakyClean.clean("H3ll0 W0rld");
// => "Hello_World"
SqueakyClean.clean("4 73s7");
// => "a_test"