Author SHA1 Message Date
klemek 10daddb54c chore: 1.4.2
Python Lint CI / ruff (push) Successful in 13m4s
Python Lint CI / ruff-format-check (push) Successful in 13m9s
Python Lint CI / ty (push) Successful in 12m32s
2026-06-16 11:31:53 +02:00
klemek d866b8fbb2 fix: invalid chars in french.txt 2026-06-16 11:31:50 +02:00
3 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -1,5 +1,6 @@
import logging import logging
import pathlib import pathlib
import re
import typing import typing
import unidecode import unidecode
@@ -22,10 +23,7 @@ class WordList:
self.logger.info("[%s] Loaded %d words", self.__name, len(self.words)) self.logger.info("[%s] Loaded %d words", self.__name, len(self.words))
def __escape_word(self, word: str) -> str: def __escape_word(self, word: str) -> str:
word = unidecode.unidecode(word.strip()).lower() return re.sub(r"[^a-z0-9-]", "", unidecode.unidecode(word.strip()).lower())
if " " in word:
return ""
return word
def close(self) -> None: def close(self) -> None:
pass pass
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "cool-domain" name = "cool-domain"
version = "1.4.1" version = "1.4.2"
description = "Add your description here" description = "Add your description here"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
Generated
+1 -1
View File
@@ -4,7 +4,7 @@ requires-python = ">=3.12"
[[package]] [[package]]
name = "cool-domain" name = "cool-domain"
version = "1.4.1" version = "1.4.2"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "unidecode" }, { name = "unidecode" },