Skip to content

Commit

Permalink
Don't pluralize model names not ending with letters
Browse files Browse the repository at this point in the history
  • Loading branch information
Refael Ackermann committed Sep 21, 2013
1 parent 51f97f2 commit f3e8ba6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ exports.pluralization = [
[/([m|l])ouse$/gi, '$1ice'],
[/(quiz)$/gi, '$1zes'],
[/s$/gi, 's'],
[/([^a-z])$/gi, '$1'],
[/$/gi, 's']
];
var rules = exports.pluralization;
Expand Down

0 comments on commit f3e8ba6

Please sign in to comment.