codespell: Update codespell regex not to split words on accented characters

https://regex101.com/r/0LFI8a/4
This commit is contained in:
Gabriel Ferreira
2025-02-04 20:30:31 +01:00
parent ea45b8052d
commit d246b8fc28

View File

@@ -2,4 +2,4 @@
skip = .git,.gitlab-ci-local,*.eps,*.pdf,*.css_t,AUTHORS,*build*,*.mob,./cmake-*,./venv
ignore-words = ./utils/codespell-ignored-words
exclude-file = ./utils/codespell-ignored-lines
regex = (?<![a-z])[a-z']+|[A-Z][a-z']*|[a-z]+'[a-z]*|[a-z]+(?=[_-])|[a-z]+(?=[A-Z])|\d+
regex = (?<![a-zà-öø-ÿ])[a-zà-öø-ÿ'`]+|[A-ZÀ-ÖØ-Þ][a-zà-öø-ÿ'`]*|[a-zà-öø-ÿ]+'[a-zà-öø-ÿ]*|[a-zà-öø-ÿ]+(?=[_-])|[a-zà-öø-ÿ]+(?=[A-ZÀ-ÖØ-Þ])|\d+