Skip to content

Fix #27: Normalized usernames keep repeated whitespace#31

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
posthog-watcher/issue-27
Draft

Fix #27: Normalized usernames keep repeated whitespace#31
github-actions[bot] wants to merge 1 commit into
mainfrom
posthog-watcher/issue-27

Conversation

@github-actions

Copy link
Copy Markdown

Fixes #27

Generated by posthog-watcher-action using pi.

Summary

The /users/normalize endpoint uses normalizeUsername, which trims and lowercases but only replaces the first literal space, leaving repeated whitespace in normalized usernames.

Triage rationale

The bug is localized to one small function, the expected behavior is clear from the issue and existing test, and the minimal change is to replace runs of whitespace globally with a single hyphen.

Changed files

  • src/business.js

Validation

  • node -e "require('./src/business'); require('./src/app'); console.log('modules load')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Normalized usernames keep repeated whitespace

0 participants