Skip to content

Commit

Permalink
Consider ending word's ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTeng committed Mar 3, 2017
1 parent e545b62 commit a34683d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pluralize.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
*/
[
[/s?$/i, 's'],
[/[^\u0000-\u007F]+/i, '$0'],
[/[^\u0000-\u007F]$/i, '$0'],
[/([^aeiou]ese)$/i, '$1'],
[/(ax|test)is$/i, '$1es'],
[/(alias|[^aou]us|tlas|gas|ris)$/i, '$1es'],
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ var BASIC_TESTS = [
['日本語', '日本語'],
['한국', '한국'],
['中文', '中文'],
['اللغة العربية', 'اللغة العربية']
['اللغة العربية', 'اللغة العربية'],
['四 chicken', '四 chickens']
];

/**
Expand Down

0 comments on commit a34683d

Please sign in to comment.