Skip to content

fix: case-insensitive user handle resolution#79

Merged
AmethystLiang merged 1 commit intomainfrom
fix/case-insensitive-user-resolve
Apr 14, 2026
Merged

fix: case-insensitive user handle resolution#79
AmethystLiang merged 1 commit intomainfrom
fix/case-insensitive-user-resolve

Conversation

@AmethystLiang
Copy link
Copy Markdown
Contributor

Summary

  • resolveUserId used strict equality (===) when matching @handle inputs against Slack usernames, so @Jinjing failed to resolve a user with handle jinjing
  • Now compares lowercase on both sides, matching Slack's own case-insensitive handle behavior
  • Added test for case-insensitive handle resolution

Test plan

  • Existing tests pass (5/5 in users.test.ts)
  • New test: resolves @handle case-insensitively
  • Full suite passes (180 tests)

`resolveUserId` used strict equality (`===`) when matching handles,
so `@Jinjing` failed to resolve a user with handle `jinjing`.
Now compares lowercase, matching Slack's own case-insensitive behavior.
@AmethystLiang AmethystLiang merged commit cfc5188 into main Apr 14, 2026
1 check passed
@AmethystLiang AmethystLiang deleted the fix/case-insensitive-user-resolve branch April 14, 2026 21:04
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.

1 participant