Skip to content

Commit aec5864

Browse files
committed
use correct reserve on create_component_match_result
1 parent ef487c8 commit aec5864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ada/url_pattern-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ url_pattern_component<regex_provider>::create_component_match_result(
5353
}
5454

5555
// Optimization: Let's reserve the size.
56-
result.groups.reserve(exec_result.size() - 1);
56+
result.groups.reserve(exec_result.size());
5757

5858
// We explicitly start iterating from 0 even though the spec
5959
// says we should start from 1. This case is handled by the

0 commit comments

Comments
 (0)