Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim whitespace from string power levels #286

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

neilalexander
Copy link
Contributor

Python's int() function is ✨ s p e c i a l ✨ and means that string power levels can be padded with whitespace. We now trim this whitespace, which at least fixes joining Watercooler.

@neilalexander neilalexander requested a review from kegsay January 31, 2022 14:11
@neilalexander
Copy link
Contributor Author

Related: matrix-org/matrix-doc#3264, and somewhat indirectly, matrix-org/matrix-spec-proposals#3667.

@neilalexander neilalexander merged commit 8d9c3d7 into master Jan 31, 2022
@neilalexander neilalexander deleted the neilalexander/stringpls branch January 31, 2022 14:28
neilalexander added a commit to matrix-org/dendrite that referenced this pull request Jan 31, 2022
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.

2 participants