-
-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
Hello there,
I have these rules (among others) in my app.
inflector.irregular('arma-branca', 'armas-brancas');
inflector.irregular('acessorio-arma-branca', 'acessorios-armas-brancas');With this config I get this result:

It seems the second irregular rule is never met, this line looks like the culprit. It checks for the end of the rule, so, strings ending the same way can respond wrongly.
Another thing I notice is that this code makes the irregular declaration order specific. If I invert the order like so:
inflector.irregular('acessorio-arma-branca', 'acessorios-armas-brancas');
inflector.irregular('arma-branca', 'armas-brancas');Can we make the irregulars check for the whole expression first?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
