Remove carriage return characters from textboxes

This commit is contained in:
Yousef Khadadeh 2025-12-03 09:29:51 +03:00
parent 06d9fb68f3
commit 244a4fa718
5 changed files with 14 additions and 4 deletions

View file

@ -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;
}