Merge pull request #2592 from JeongJuhyeon/patch-1

Add '?' to set of punctuations to strip for file mentions
This commit is contained in:
paul-gauthier 2024-12-10 08:41:38 -08:00 committed by GitHub
commit 55b081884c
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(['"', "'", "`"])