Skip to content

Commit

Permalink
Support plural of matrix #10056
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Dec 27, 2023
1 parent 110cb6c commit 5a67183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/natural/src/lib/classes/utility.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ describe('makePlural', () => {
RiskClassification: 'RiskClassifications',
RiskFrequency: 'RiskFrequencies',
RiskLevel: 'RiskLevels',
RiskMatrix: 'RiskMatrixs',
RiskMatrix: 'RiskMatrixes',
RiskSeverity: 'RiskSeverities',
Rite: 'Rites',
RoleContextInterface: 'RoleContextInterfaces',
Expand Down
2 changes: 1 addition & 1 deletion projects/natural/src/lib/classes/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function makePlural(name: string): string {

const plural = name + 's';

return plural.replace(/ys$/, 'ies').replace(/ss$/, 'ses');
return plural.replace(/ys$/, 'ies').replace(/ss$/, 'ses').replace(/xs$/, 'xes');
}

/**
Expand Down

0 comments on commit 5a67183

Please sign in to comment.