Skip to content

Commit 150fa73

Browse files
committed
Fix offers redability
1 parent 9871c2f commit 150fa73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pages/careers.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const CACHE_EXPIRATION = 24 * 60 * 60 * 1000;
1111

1212
const formatWage = (wage) => {
1313
if (!wage) return wage;
14-
return wage.replace(/([$£¥])\s?(\d+(?:\.\d+)?)(?!\s?k)/gi, '$1$2k');
14+
let formatted = wage.replace(/([$£¥])\s?(\d+(?:\.\d+)?)(?![\d.kK])/g, '$1$2K');
15+
formatted = formatted.replace(/\/\s*monthly/i, '/ month');
16+
return formatted;
1517
};
1618

1719
export default function Careers() {

0 commit comments

Comments
 (0)