Initial commit with tests and deployment pipeline
Test and Deploy Website / test-and-deploy (push) Successful in 1m12s
Test and Deploy Website / test-and-deploy (push) Successful in 1m12s
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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 };
|
||||
}
|
||||
Reference in New Issue
Block a user