Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/url_aggregator.cpp
Co-authored-by: Yagiz Nizipli <[email protected]>
  • Loading branch information
mertcanaltin and anonrig authored Jan 12, 2025
commit 45b5d5db56922be923cd19fb9229a22aec5d57f8
6 changes: 0 additions & 6 deletions src/url_aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@ bool url_aggregator::set_port(const std::string_view input) {
return false;
}

auto non_digit_pos = std::find_if_not(trimmed.begin(), trimmed.end(),
ada::unicode::is_ascii_digit);
if (non_digit_pos != trimmed.end()) {
trimmed.erase(non_digit_pos, trimmed.end());
}

// Input should not start with control characters.
if (ada::unicode::is_c0_control_or_space(trimmed.front())) {
return false;
Expand Down