Word count is off by one when text ends with a space
@accesswatch 已經在處理了。
開始於 2026年11月8日。
評估
這個 Issue 還沒有評估資料。
描述
What happened
word_count("hello world ") returns 3. There are only two words.
What I expected
- A space at the end of the text shouldn't count as a word.
How to see it
- Run
python -c "import sys; sys.path.insert(0, 'src'); import tally; print(tally.word_count('hello world '))" - It prints 3.
The same happens with two spaces between words.
- 主要語言
- Python
- 星號
- 1
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Community-Access/quill-github-practice 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 69/100
-
question
難度 5/5 一週以上 新手友好度 25/100
Community-Access/quill-github-practice#4 · 3 則留言 ·
-
documentation
難度 1/5 1-3 小時 新手友好度 75/100
-
Add a line count to the summary可能已有人在做 @github-actions 於 21 天前認領。 未關閉enhancement good first issue
難度 1/5 1-3 小時 新手友好度 20/100
查看 Community-Access/quill-github-practice 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
can4hou6joeng4/boss-agent-cli#3290 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug
難度 1/5 1 小時以內 新手友好度 94/100
vllm-project/vllm#70568 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
exa-studio/ApiVault#338 ·
-
perf: the model list request spends over a third of its time converting data that is already JSON未關閉bug confirmed issue
難度 2/5 1-3 小時 新手友好度 78/100
open-webui/open-webui#35211 · 2 則留言 ·
維護者通常 1 天內回覆