Files
website/public/js/utils.js
T
antigravity f0b4f42cb1
Test and Deploy Website / test-and-deploy (push) Successful in 1m12s
Initial commit with tests and deployment pipeline
2026-06-15 14:00:40 +02:00

13 lines
323 B
JavaScript

function validateEmail(email) {
const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return re.test(email);
}
function formatGreeting(timeOfDay, name) {
return `Good ${timeOfDay}, welcome to ${name}'s portfolio!`;
}
if (typeof module !== 'undefined' && module.exports) {
module.exports = { validateEmail, formatGreeting };
}