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 ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Community-Access/quill-github-practice のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
-
question
難易度 5/5 1週間以上 初心者へのやさしさ 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 日以内に返信