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');
I get the right result:

Can we make the irregulars check for the whole expression first?
Hello there,
I have these rules (among others) in my app.
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:
I get the right result:

Can we make the irregulars check for the whole expression first?