diff options
| -rw-r--r-- | hayai/brec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hayai/brec.py b/hayai/brec.py index 478d379..e9e4bf5 100644 --- a/hayai/brec.py +++ b/hayai/brec.py @@ -50,7 +50,7 @@ class MyHTMLParser(HTMLParser): def bolding(text): - parts = re.findall(r"\w+|[^\s\w]+", text) + parts = text.split() new_text = "" for part in parts: if part in string.punctuation or part in string.digits: |