Fix spelling of include guard, fix grammar of error message.
This commit is contained in:
parent
fdc5c32b2d
commit
92852ddd9e
@ -1,5 +1,5 @@
|
||||
#ifndef SMTP_ADDRESS_PARTSER_HPP_INCLUDED
|
||||
#define SMTP_ADDRESS_PARTSER_HPP_INCLUDED
|
||||
#ifndef SMTP_ADDRESS_PARSER_HPP_INCLUDED
|
||||
#define SMTP_ADDRESS_PARSER_HPP_INCLUDED
|
||||
|
||||
/*
|
||||
|
||||
@ -33,4 +33,4 @@ SOFTWARE.
|
||||
|
||||
bool is_address(std::string_view s);
|
||||
|
||||
#endif // SMTP_ADDRESS_PARTSER_HPP_INCLUDED
|
||||
#endif // SMTP_ADDRESS_PARSER_HPP_INCLUDED
|
||||
|
||||
@ -215,7 +215,7 @@ void default_string_format_check(const std::string &format, const std::string &v
|
||||
rfc3339_time_check(value);
|
||||
} else if (format == "email") {
|
||||
if (!is_ascii(value)) {
|
||||
throw std::invalid_argument(value + " is contains non-ASCII values, not RFC 5321 compliant.");
|
||||
throw std::invalid_argument(value + " contains non-ASCII values, not RFC 5321 compliant.");
|
||||
}
|
||||
if (!is_address(value)) {
|
||||
throw std::invalid_argument(value + " is not a valid email according to RFC 5321.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user