Bob

in #italast month

export const hey = (message) => {
let new_mess = message.replace(/[^a-zA-Z]/g, '').trim();
let message_trim = message.trim();
if(!message_trim) {return "Fine. Be that way!"}
if(/^[A-Z]+$/.test(new_mess) && message_trim.endsWith('?')) {return "Calm down, I know what I'm doing!";}
if(/^[A-Z]+$/.test(new_mess)){return "Whoa, chill out!";}
if(message_trim.endsWith('?')){return "Sure.";}
else return "Whatever.";
};