Permalink
Browse files

Fixed singularization of "prices"

  • Loading branch information...
1 parent 9dbf56e commit 47bfc613d6d2033e4992fa4252036c9357a173f2 @pvanliefland pvanliefland committed with fabpot Nov 10, 2012
Showing with 6 additions and 5 deletions.
  1. +4 −3 Tests/Util/FormUtilTest.php
  2. +2 −2 Util/FormUtil.php
@@ -25,8 +25,9 @@ public function singularifyProvider()
array('funguses', array('fungus', 'funguse', 'fungusis')),
array('fungi', 'fungus'),
array('axes', array('ax', 'axe', 'axis')),
- array('appendices', array('appendex', 'appendix')),
- array('indices', array('index', 'indix')),
+ array('appendices', array('appendex', 'appendix', 'appendice')),
+ array('indices', array('index', 'indix', 'indice')),
+ array('prices', array('prex', 'prix', 'price')),
array('indexes', 'index'),
array('children', 'child'),
array('men', 'man'),
@@ -45,7 +46,7 @@ public function singularifyProvider()
array('foci', 'focus'),
array('focuses', array('focus', 'focuse', 'focusis')),
array('oases', array('oas', 'oase', 'oasis')),
- array('matrices', array('matrex', 'matrix')),
+ array('matrices', array('matrex', 'matrix', 'matrice')),
array('matrixes', 'matrix'),
array('bureaus', 'bureau'),
array('bureaux', 'bureau'),
View
@@ -65,8 +65,8 @@
// oxen (ox)
array('nexo', 4, false, false, 'ox'),
- // indices (index), appendices (appendix)
- array('seci', 4, false, true, array('ex', 'ix')),
+ // indices (index), appendices (appendix), prices (price)
+ array('seci', 4, false, true, array('ex', 'ix', 'ice')),
// babies (baby)
array('sei', 3, false, true, 'y'),

0 comments on commit 47bfc61

Please sign in to comment.