Skip to content

Commit

Permalink
Fix Taxes -> Tax in Inflector
Browse files Browse the repository at this point in the history
Fixes #783
  • Loading branch information
joelittlejohn committed Sep 18, 2017
1 parent 9137a6d commit 92d6af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public static Inflector.Builder createDefaultBuilder()
.singular("(o)es$", "$1")
.singular("(shoe)s$", "$1")
.singular("(cris|ax|test)es$", "$1is")
.singular("(tax)es$", "$1")
.singular("([octop|vir])i$", "$1us")
.singular("(alias|status)es$", "$1")
.singular("^(ox)en", "$1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void testSingularize() {
assertThat(Inflector.getInstance().singularize("s"), is("s"));
assertThat(Inflector.getInstance().singularize("status"), is("status"));
assertThat(Inflector.getInstance().singularize("statuses"), is("status"));
assertThat(Inflector.getInstance().singularize("LineItemTaxes"), is("LineItemTax"));

assertThat(Inflector.getInstance().pluralize("mattress"), is("mattresses"));
assertThat(Inflector.getInstance().pluralize("address"), is("addresses"));
Expand Down

1 comment on commit 92d6af1

@sripathitk
Copy link

Choose a reason for hiding this comment

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

Thanks for the changes.

Please sign in to comment.