Skip to content

fix: trim spaces from folder names#135

Merged
thomasnemer merged 1 commit intomainfrom
134-trim-spaces-folder-names
Feb 9, 2026
Merged

fix: trim spaces from folder names#135
thomasnemer merged 1 commit intomainfrom
134-trim-spaces-folder-names

Conversation

@thomasnemer
Copy link
Copy Markdown
Contributor

Summary

  • Ensure folder names don't have leading or trailing spaces when created

Changes

Added .trim().to_string() to the folder name creation in get_activity_folder function to prevent folder names from having leading or trailing whitespace.

Test plan

  • All 151 existing tests pass
  • Verified the change correctly trims the folder name

Fixes #134

@thomasnemer thomasnemer force-pushed the 134-trim-spaces-folder-names branch from 8b98cc6 to 7b327dd Compare February 9, 2026 20:54
@thomasnemer thomasnemer added the ready-for-tests Implementation is complete and ready for tests to be ran label Feb 9, 2026
@thomasnemer thomasnemer enabled auto-merge (squash) February 9, 2026 20:55
Add .trim() after truncating filename in sanitize_filename to ensure
folder names don't have trailing spaces from truncation.

Fixes #134
@thomasnemer thomasnemer force-pushed the 134-trim-spaces-folder-names branch from 7b327dd to 65c7546 Compare February 9, 2026 20:57
@thomasnemer thomasnemer added ready-for-tests Implementation is complete and ready for tests to be ran and removed ready-for-tests Implementation is complete and ready for tests to be ran labels Feb 9, 2026
@thomasnemer thomasnemer merged commit 42a7ab9 into main Feb 9, 2026
5 checks passed
@thomasnemer thomasnemer deleted the 134-trim-spaces-folder-names branch February 9, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-tests Implementation is complete and ready for tests to be ran

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trim spaces at the beginning and end of folder names

1 participant