Remove carriage return characters from textboxes
This commit is contained in:
parent
06d9fb68f3
commit
244a4fa718
5 changed files with 14 additions and 4 deletions
|
|
@ -77,3 +77,8 @@ bool is_valid_http_url(const std::string& str) {
|
|||
|
||||
return std::regex_match(str, pattern);
|
||||
}
|
||||
|
||||
std::string remove_carriage_returns_from_str(std::string s) {
|
||||
std::erase(s, '\r');
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue