Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Nov 30, 2024
1 parent 024a7fa commit 89f46f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/url_pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

namespace ada {

URLPattern::Component::Component(std::string_view pattern,
std::string_view regex,
const std::vector<std::string>& names) {
URLPattern::Component::Component(std::string_view pattern_,
std::string_view regex_,
const std::vector<std::string>& names_) {
// TODO: Implement this
return {.pattern = pattern, .regex = regex, .names = std::move(names)};
pattern = pattern_;
regex = regex_;
names = std::move(names_);
}

std::optional<URLPattern::Result> URLPattern::exec(
Expand Down

0 comments on commit 89f46f0

Please sign in to comment.