Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Do not remove space before .ext #61

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Do not remove space before .ext #61

merged 3 commits into from
Oct 14, 2024

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Oct 14, 2024

Suggestion for and fixes tox-dev/pyproject-fmt#270.

Use a regex to only replace " ." when there's no word character afterwards.

Also replace .split(char::is_whitespace) with .split_whitespace().

@gaborbernat gaborbernat merged commit f0937ce into tox-dev:main Oct 14, 2024
34 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Whitespace normalisation breaks .ext in description text
2 participants