 
 # This doesn't really validate e-mails but is a basic sanity check
 EMAIL_REGEX = /.+\@.+\..+/
+CUSTOM_MESSAGE_REGEX = new RegExp CUSTOM_MESSAGE_CODE_ESCAPE, 'g'
 
 app = express()
 

      res.status 500
      res.send {
        success: false
        err: "Server Error: #{ err }"
        userMobileNumber
      }
  .catch (err) ->
    res.status 500
    res.send JSON.stringify {
      success: false
      err: "Server Error: #{ err }"
    }



  message ?= "Code:"

  if contains message, CUSTOM_MESSAGE_CODE_ESCAPE
    messageToSend = message.replace CUSTOM_MESSAGE_REGEX, code
  else
    messageToSend = "#{ message } #{ code }"

