Page MenuHomePhabricator

[lib] Introduce basePluralize
ClosedPublic

Authored by ashoat on Feb 1 2023, 2:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 4:44 PM
Unknown Object (File)
Thu, Jun 27, 4:44 PM
Unknown Object (File)
Thu, Jun 27, 4:44 PM
Unknown Object (File)
Thu, Jun 27, 4:44 PM
Unknown Object (File)
Thu, Jun 27, 4:40 PM
Unknown Object (File)
Mon, Jun 17, 12:02 PM
Unknown Object (File)
Wed, Jun 12, 4:17 PM
Unknown Object (File)
Wed, Jun 12, 4:04 AM
Subscribers

Details

Summary

In the next diff, I introduce a function that pluralizes EntityText. This diff factors out the shared functionality.

Depends on D6510

Test Plan

The test cases in lib/utils/text-utils.test.js are extremely thorough

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested review of this revision.Feb 1 2023, 2:23 PM

baseCase isn't necessary, as it can be constructed by calling composeFunc('')

The test cases in lib/utils/text-utils.test.js are extremely thorough

Nice, glad these ended up being useful

This revision is now accepted and ready to land.Feb 2 2023, 10:45 AM
This revision was automatically updated to reflect the committed changes.