Skip to content

Commit

Permalink
Merge branch 'Expensify:main' into 34263-redirection-to-mr-report
Browse files Browse the repository at this point in the history
  • Loading branch information
rojiphil authored Jan 11, 2024
2 parents 4e65a63 + e54abdf commit 5eede8b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/createDocsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ const platformNames = {
* @returns {String}
*/
function toTitleCase(str) {
return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1));
return _.map(str.split(' '), (word, i) => {
if (i !== 0 && (word.toLowerCase() === 'a' || word.toLowerCase() === 'the' || word.toLowerCase() === 'and')) {
return word.toLowerCase();
}
return word.charAt(0).toUpperCase() + word.substring(1);
}).join(' ');
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/TeachersUnite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function addSchoolPrincipal(firstName: string, partnerUserID: string, lastName:
value: {
id: policyID,
isPolicyExpenseChatEnabled: true,
areChatRoomsEnabled: true,
type: CONST.POLICY.TYPE.CORPORATE,
name: policyName,
role: CONST.POLICY.ROLE.USER,
Expand Down

0 comments on commit 5eede8b

Please sign in to comment.