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.";
};
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
If you enjoyed what you read here, create your account today and start earning FREE STEEM!