Added traffic and chassis as uncountable words to properly feed pluralizer
Signed-off-by: Jason Walton <jwalton512@gmail.com>
This commit is contained in:
parent
a5bb035e4c
commit
adc23dc964
|
@ -96,6 +96,8 @@
|
||||||
'sheep',
|
'sheep',
|
||||||
'species',
|
'species',
|
||||||
'moose',
|
'moose',
|
||||||
|
'chassis',
|
||||||
|
'traffic',
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -185,4 +187,4 @@
|
||||||
|
|
||||||
),
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This array contains the singular and plural forms of words. It's used by
|
| This array contains the singular and plural forms of words. It's used by
|
||||||
| the "singular" and "plural" methods on the Str class to convert a given
|
| the "singular" and "plural" methods in the Str class to convert a given
|
||||||
| word from singular to plural and vice versa.
|
| word from singular to plural and vice versa.
|
||||||
|
|
|
|
||||||
| Note that the regular expressions are only for inflecting English words.
|
| Note that the regular expressions are only for inflecting English words.
|
||||||
|
@ -95,6 +95,9 @@
|
||||||
'series',
|
'series',
|
||||||
'sheep',
|
'sheep',
|
||||||
'species',
|
'species',
|
||||||
|
'moose',
|
||||||
|
'chassis',
|
||||||
|
'traffic',
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -184,4 +187,4 @@
|
||||||
|
|
||||||
),
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -96,6 +96,8 @@ public function testStringsCanBeSingularOrPlural()
|
||||||
$this->assertEquals('Users', Str::plural('User'));
|
$this->assertEquals('Users', Str::plural('User'));
|
||||||
$this->assertEquals('user', Str::plural('user', 1));
|
$this->assertEquals('user', Str::plural('user', 1));
|
||||||
$this->assertEquals('users', Str::plural('user', 2));
|
$this->assertEquals('users', Str::plural('user', 2));
|
||||||
|
$this->assertEquals('chassis', Str::plural('chassis', 2));
|
||||||
|
$this->assertEquals('traffic', Str::plural('traffic', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -130,4 +132,4 @@ public function testRandomStringsCanBeGenerated()
|
||||||
$this->assertEquals(40, strlen(Str::random(40)));
|
$this->assertEquals(40, strlen(Str::random(40)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue