Skip to content

flect#47 - Add new rules at the beginning of rules array#48

Merged
paganotoni merged 1 commit into
gobuffalo:masterfrom
renathoaz:47-flect/master
Dec 3, 2021
Merged

flect#47 - Add new rules at the beginning of rules array#48
paganotoni merged 1 commit into
gobuffalo:masterfrom
renathoaz:47-flect/master

Conversation

@renathoaz

Copy link
Copy Markdown
Contributor

So when call Pluralize or Singularize, the new rules will be executed instead of the standard rules.

…rules will be applied first

reverse init for to standard rules

@dosco dosco left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Inserting new rules to the top of the list I feel is the correct way to handle adding to the list as gives users of the library the ability to over-rule existing entries when needed.

@paganotoni

Copy link
Copy Markdown
Member

@renathoaz could you add some tests that specify this ? maybe adding conflicting rules and ensuring that the one added by the user is the one used.

@paganotoni

Copy link
Copy Markdown
Member

BTW: Thanks for putting this one together I think it makes all the sense. Appreciate it.

@ccakes

ccakes commented Nov 25, 2021

Copy link
Copy Markdown

Would love to see this merged, it's difficult to replace markbates/inflect with this package without that change.

/ping @paganotoni

@sio4 sio4 requested review from sio4 and removed request for sio4 December 3, 2021 11:39
@sio4

sio4 commented Dec 3, 2021

Copy link
Copy Markdown
Member

@paganotoni can we merge this? As you mentioned, this PR is reasonable and will work fine.

@paganotoni paganotoni merged commit b93d530 into gobuffalo:master Dec 3, 2021
@sio4 sio4 mentioned this pull request Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants