| 539 | return true; |
| 540 | } |
| 541 | bool Helper::isEmailAddress(const std::string& email) { |
| 542 | const std::regex pattern ("(\\w+)(\\.|_)?(\\w*)@(\\w+)(\\.(\\w+))+"); |
| 543 | return std::regex_match(email, pattern); |
| 544 | } |
| 545 | bool Helper::isSomeDate(const std::string& dateString) { |
| 546 | const std::regex pattern ("^\\d+[\\.|\\-|\\|]\\d+[\\.|\\-|\\|]\\d+"); |
| 547 | return std::regex_match(dateString, pattern); |
nothing calls this directly
no outgoing calls
no test coverage detected