Skip to content

Commit

Permalink
Not return s behind non-english
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTeng committed Mar 2, 2017
1 parent 9b71c46 commit 83a6299
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions pluralize.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
*/
[
[/s?$/i, 's'],
[/[^\u0000-\u007F]+/i, '$0'],
[/([^aeiou]ese)$/i, '$1'],
[/(ax|test)is$/i, '$1es'],
[/(alias|[^aou]us|tlas|gas|ris)$/i, '$1es'],
Expand Down
6 changes: 5 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,11 @@ var BASIC_TESTS = [
['camelCase', 'camelCases'],
['PascalCase', 'PascalCases'],
['Alumnus', 'Alumni'],
['CHICKEN', 'CHICKENS']
['CHICKEN', 'CHICKENS'],
['日本語', '日本語'],
['한국', '한국'],
['中文', '中文'],
['اللغة العربية', 'اللغة العربية']
];

/**
Expand Down

0 comments on commit 83a6299

Please sign in to comment.