Diff always highlights unicode characters

Steps to reproduce:

  • Have a file with the following content in your git:
Hello → World
  • Change its content to
Hello → World2
  • Look at the diff in GitLab

Expected behavior

The 2 is highlighted because it changed; nothing else is highlighted.

Actual behavior

The is highlighted as well. This seems to happen for all unicode characters.

Edited by 🤖 GitLab Bot 🤖