Irregular Whitespace with AI generated Text

I’ve came to a point where cursor has become basically not usable for me anymore :frowning:

In almost all cases where I put in text, I get a this error message when committing anything:
67:74 error Irregular whitespace not allowed no-irregular-whitespace

And the problem is, this error is not fixable. Even if I delete the whole line and write it manually, the error stays. I’ve invested now more than 8 hours to fix it, no chance.

Things I tried:

  • Searching with RegEx for [\u00A0\u1680\u180E\u2000-\u200A\u202F\u205F\u3000\u200B]
  • Deleting the line, writing it manually
  • Deleting the line (not writing it manually)
  • Pushing the text into several AIs (cursor, chatgpt). They all say that they can’t detect any whitespace
  • Using an online text cleaner and pasting the “cleaned version” into the file
  • git reset, and new git add