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

Fixed: Trim all leading dots from nested folders (#2371) #2372

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

gaizaharduz
Copy link

@gaizaharduz gaizaharduz commented Aug 21, 2021

Database Migration

NO

Description

Remove leading ellipses/dots from nested folder names so that they are not hidden.

Screenshot (if UI related)

Todos

Issues Fixed or Closed by this PR

@bakerboy448 bakerboy448 added the Status: Ready for Review Awaiting review label Mar 5, 2022
@@ -131,7 +131,7 @@ public string BuildTrackFileName(List<Track> tracks, Artist artist, Album album,

var component = ReplaceTokens(splitPattern, tokenHandlers, namingConfig).Trim();

component = FileNameCleanupRegex.Replace(component, match => match.Captures[0].Value[0].ToString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than this change, would it be better to modify the 'CleanFolderName' method to trim leading "." characters? Then if a user would like to keep the leading "." they can use {Album Title}, but trimming is available with {Album CleanTitle} or any of the other 'clean' tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Leading ellipsis for nested folder names replaced with dot on import
3 participants