Add '?' to set of punctuations to strip for file mentions

This commit is contained in:
JeongJuhyeon 2024-12-10 22:10:00 +09:00 committed by GitHub
parent 16332b285f
commit 3f63a64254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1471,7 +1471,7 @@ class Coder:
words = set(word for word in content.split())
# drop sentence punctuation from the end
words = set(word.rstrip(",.!;:") for word in words)
words = set(word.rstrip(",.!;:?") for word in words)
# strip away all kinds of quotes
quotes = "".join(['"', "'", "`"])