Skip to content

MINOR: Word count should account for extra whitespaces between words#10044

Merged
mjsax merged 1 commit intoapache:trunkfrom
wicknicks:minor-fix-streams-word-count
Feb 5, 2021
Merged

MINOR: Word count should account for extra whitespaces between words#10044
mjsax merged 1 commit intoapache:trunkfrom
wicknicks:minor-fix-streams-word-count

Conversation

@wicknicks
Copy link
Copy Markdown
Contributor

Currently, the word count demo only accounts for single whitespaces between words. This fix uses a more generic regex to skip multiple spaces or tabs that may occur between words. Corresponding unit tests were updated.

Also, the quickstart docs already use the correct regex.

Signed-off-by: Arjun Satish arjun@confluent.io

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Signed-off-by: Arjun Satish <arjun@confluent.io>
@wicknicks wicknicks marked this pull request as draft February 3, 2021 23:18
@mjsax mjsax added the streams label Feb 3, 2021
@wicknicks wicknicks marked this pull request as ready for review February 3, 2021 23:41
Copy link
Copy Markdown
Member

@mjsax mjsax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can merge after Jenkins passed.

@mjsax mjsax merged commit c8dc74e into apache:trunk Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants