My code worked good up until the test “Parallel Letter Frequency > Unicode letters”.
In that test my code outputted “Object {}” after outputting the expected output, I don’t know why it happens, I don’t know how to fix it. Please help me fix this.
You want to check this regular expression. It seems to match all characters that are not between a and z or A and Z. Those unicode characters definitely are not in that range, thus are removed when calling:
@SleeplessByte Thanks! I’ve modified the code a bit and now it does remove the “Object {}” thing from the output. But now it outputs what looks like parts of the expected output. Can you please explain to me why this happens?
Only one of the texts includes that exact character. You don’t want different behaviour if that character is present. You want the same behaviour, always.