Skip to content

Commit 575eb55

Browse files
committed
[bug fix] woman plural & singular form
1 parent 1c29c38 commit 575eb55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/inflection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347

348348
var regex = {
349349
plural : {
350-
men : new RegExp( '^(m)en$' , 'gi' ),
350+
men : new RegExp( '^(m|wom)en$' , 'gi' ),
351351
people : new RegExp( '(pe)ople$' , 'gi' ),
352352
children : new RegExp( '(child)ren$' , 'gi' ),
353353
tia : new RegExp( '([ti])a$' , 'gi' ),
@@ -381,7 +381,7 @@
381381
},
382382

383383
singular : {
384-
man : new RegExp( '^(m)an$' , 'gi' ),
384+
man : new RegExp( '^(m|wom)an$' , 'gi' ),
385385
person : new RegExp( '(pe)rson$' , 'gi' ),
386386
child : new RegExp( '(child)$' , 'gi' ),
387387
ox : new RegExp( '^(ox)$' , 'gi' ),
@@ -1065,7 +1065,7 @@
10651065
/**
10661066
* @public
10671067
*/
1068-
inflector.version = '1.7.0';
1068+
inflector.version = '1.7.1';
10691069

10701070
return inflector;
10711071
}));

0 commit comments

Comments
 (0)