Page MenuHomePhabricator

[lib] Introduce basePluralize
ClosedPublic

Authored by ashoat on Feb 1 2023, 2:07 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Nov 19 2024, 8:14 PM
Unknown Object (File)
Nov 19 2024, 7:06 PM
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.