Page MenuHomePhabricator

[lib] Introduce basePluralize
ClosedPublic

Authored by ashoat on Feb 1 2023, 2:07 PM.
Tags
None
Referenced Files
F3504950: D6511.id21806.diff
Fri, Dec 20, 11:30 AM
F3503726: D6511.diff
Fri, Dec 20, 6:15 AM
Unknown Object (File)
Sat, Dec 14, 1:30 PM
Unknown Object (File)
Sat, Dec 14, 1:30 PM
Unknown Object (File)
Sat, Dec 14, 1:30 PM
Unknown Object (File)
Sat, Dec 14, 1:29 PM
Unknown Object (File)
Sat, Dec 14, 1:23 PM
Unknown Object (File)
Thu, Dec 12, 8:32 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
Lint Not Applicable
Unit
Tests Not Applicable

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.