Skip to content

Commit

Permalink
Fixed singularization of "prices"
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanliefland authored and fabpot committed Nov 10, 2012
1 parent 9dbf56e commit 47bfc61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Tests/Util/FormUtilTest.php
Expand Up @@ -25,8 +25,9 @@ public function singularifyProvider()
array('funguses', array('fungus', 'funguse', 'fungusis')), array('funguses', array('fungus', 'funguse', 'fungusis')),
array('fungi', 'fungus'), array('fungi', 'fungus'),
array('axes', array('ax', 'axe', 'axis')), array('axes', array('ax', 'axe', 'axis')),
array('appendices', array('appendex', 'appendix')), array('appendices', array('appendex', 'appendix', 'appendice')),
array('indices', array('index', 'indix')), array('indices', array('index', 'indix', 'indice')),
array('prices', array('prex', 'prix', 'price')),
array('indexes', 'index'), array('indexes', 'index'),
array('children', 'child'), array('children', 'child'),
array('men', 'man'), array('men', 'man'),
Expand All @@ -45,7 +46,7 @@ public function singularifyProvider()
array('foci', 'focus'), array('foci', 'focus'),
array('focuses', array('focus', 'focuse', 'focusis')), array('focuses', array('focus', 'focuse', 'focusis')),
array('oases', array('oas', 'oase', 'oasis')), array('oases', array('oas', 'oase', 'oasis')),
array('matrices', array('matrex', 'matrix')), array('matrices', array('matrex', 'matrix', 'matrice')),
array('matrixes', 'matrix'), array('matrixes', 'matrix'),
array('bureaus', 'bureau'), array('bureaus', 'bureau'),
array('bureaux', 'bureau'), array('bureaux', 'bureau'),
Expand Down
4 changes: 2 additions & 2 deletions Util/FormUtil.php
Expand Up @@ -65,8 +65,8 @@ abstract class FormUtil
// oxen (ox) // oxen (ox)
array('nexo', 4, false, false, 'ox'), array('nexo', 4, false, false, 'ox'),


// indices (index), appendices (appendix) // indices (index), appendices (appendix), prices (price)
array('seci', 4, false, true, array('ex', 'ix')), array('seci', 4, false, true, array('ex', 'ix', 'ice')),


// babies (baby) // babies (baby)
array('sei', 3, false, true, 'y'), array('sei', 3, false, true, 'y'),
Expand Down

0 comments on commit 47bfc61

Please sign in to comment.