Skip to content

fixed #24 by adjusting the function's conditions#60

Merged
sio4 merged 1 commit into
mainfrom
fixing-folder-naming
Sep 3, 2022
Merged

fixed #24 by adjusting the function's conditions#60
sio4 merged 1 commit into
mainfrom
fixing-folder-naming

Conversation

@sio4

@sio4 sio4 commented Sep 3, 2022

Copy link
Copy Markdown
Member

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
Comment thread name/folder.go
Comment thread name/folder.go
@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