aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-22 19:42:49 -0700
committerFuwn <[email protected]>2023-07-22 19:42:49 -0700
commit72ac5f0ec80c42514b247b0d4cc72f6a5ae6c34a (patch)
tree2894a721d78d27e28188f30edc4471f0d9aeda0f
parentfeat(hayai): favicon (diff)
downloadhayai-0.1.3.tar.xz
hayai-0.1.3.zip
fix(brec): split on whitespace for punciation fixv0.1.3
-rw-r--r--hayai/brec.py2
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: