Skip to content

Commit

Permalink
Fixing singularization of "curves"
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 7, 2011
1 parent ee16348 commit 9f4ad94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/inflector.php
Expand Up @@ -147,7 +147,8 @@ class Inflector {
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', '.*ss'
),
'irregular' => array(
'waves' => 'wave'
'waves' => 'wave',
'curves' => 'curve'
)
);

Expand Down
1 change: 1 addition & 0 deletions cake/tests/cases/libs/inflector.test.php
Expand Up @@ -115,6 +115,7 @@ function testInflectingSingulars() {
$this->assertEqual(Inflector::singularize('diagnoses'), 'diagnosis');
$this->assertEqual(Inflector::singularize('bases'), 'basis');
$this->assertEqual(Inflector::singularize('analyses'), 'analysis');
$this->assertEqual(Inflector::singularize('curves'), 'curve');

$this->assertEqual(Inflector::singularize(''), '');
}
Expand Down

0 comments on commit 9f4ad94

Please sign in to comment.