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 于 20 天前认领。 未关闭enhancement good first issue
难度 1/5 1-3 小时 新手友好度 20/100
查看 Community-Access/quill-github-practice 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
-
SQL Lab: pasting text that matches no database into the "Data connection" select throws TypeError未关闭#bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
bug crash needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
Community-Access/quill#2135 ·
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 76/100
munendra07-tech/agent-crashtest#20 ·
维护者通常 1 天内回复
-
braveapi: time range filter is sent as time_range, which the Brave API ignores (needs freshness)未关闭
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复