From 3fa7fd66c71327bfe1caab75b5bcbb14b8c4e71e Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 27 Jan 2025 11:11:23 -0500 Subject: [PATCH] use correct reserve on create_component_match_result --- include/ada/url_pattern-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ada/url_pattern-inl.h b/include/ada/url_pattern-inl.h index 7330e98ea..1823d4ac8 100644 --- a/include/ada/url_pattern-inl.h +++ b/include/ada/url_pattern-inl.h @@ -53,7 +53,7 @@ url_pattern_component::create_component_match_result( } // Optimization: Let's reserve the size. - result.groups.reserve(exec_result.size() - 1); + result.groups.reserve(exec_result.size()); // We explicitly start iterating from 0 even though the spec // says we should start from 1. This case is handled by the