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 #24 by adjusting the function's conditions #60

Merged
merged 1 commit into from Sep 3, 2022
Merged

Conversation

sio4
Copy link
Member

@sio4 sio4 commented Sep 3, 2022

The function logic has inconsistent condition logic even though the purpose of the function should be to remove special characters from the given string to make it suitable as a general folder name.

Simplified the condition and processing flow and the issue was fixed. now, the transformation is simple, all of the following will be admin_user:

  • AdminUser
  • adminUser
  • admin-user
  • admin_user
  • admin^user

This is a breaking change to the users who used the pascal case names as the argument of the function since those were transformed into a sub-folder form previously.

fixes #24 and maybe gobuffalo/buffalo#1769 too.

@sio4 sio4 added bug Something isn't working breaking change This feature/fix introduces breaking changes labels Sep 3, 2022
@sio4 sio4 self-assigned this Sep 3, 2022
name/folder.go Show resolved Hide resolved
name/folder.go Show resolved Hide resolved
@sio4 sio4 closed this Sep 3, 2022
@sio4 sio4 reopened this Sep 3, 2022
@sio4 sio4 merged commit a5e963f into main Sep 3, 2022
@sio4 sio4 deleted the fixing-folder-naming branch September 3, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This feature/fix introduces breaking changes bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in name.Folder()
1 participant