Open
Description
Describe the bug
When the input code contains ". ", the coating code is reversed and sometimes appears in the middle.
For some reasons, it does not happen every time, it depends on the position of the ". " string.
To Reproduce
Steps to reproduce the behavior:
- Go to https://clemg.github.io/pythongolfer/
- Enter a code with ". " in it
- Click the "Golf it!" button
- See error
Expected behavior
The result code should appear coated with the decoding python code, but instead we get a reversed string in the middle.
Desktop or Smartphone (please complete the following information):
- OS: Windows 10
- Browser Firefox
- Version 84.0.2 (64 bits)
Edit: also works with "+ " in it.
Theory: Maybe when the "+" or the "." is in an even indice position in the string, the converted char in UTF-16 is a reversing one, it would explain what this happens only in this precise case.