diff --git a/src/components/updates.js b/src/components/updates.js index 393dc202d4..6e4918ada4 100644 --- a/src/components/updates.js +++ b/src/components/updates.js @@ -30,6 +30,23 @@ function Updates(props) { .reverse() .map(function (activity, index) { activity.update = activity.update.replace('\n', '
'); + activity.update = activity.update.replace( + new RegExp('\\b' + 'recovery' + '\\b'), + " recovery " + ); + activity.update = activity.update.replace( + new RegExp('\\b' + 'recoveries' + '\\b'), + " recoveries " + ); + activity.update = activity.update.replace( + new RegExp('\\b' + 'new cases' + '\\b'), + " new cases " + ); + activity.update = activity.update.replace( + new RegExp('\\b' + 'new case' + '\\b'), + " new case " + ); + const activityDate = new Date(activity.timestamp * 1000); const addHeader = () => { currentDate = activityDate;