|
1 | | -/* auto-generated on 2026-01-30 13:29:04 -0500. Do not edit! */ |
| 1 | +/* auto-generated on 2026-02-23 21:29:24 -0500. Do not edit! */ |
2 | 2 | /* begin file include/ada.h */ |
3 | 3 | /** |
4 | 4 | * @file ada.h |
@@ -8091,6 +8091,12 @@ inline void url_aggregator::update_base_pathname(const std::string_view input) { |
8091 | 8091 | // output. |
8092 | 8092 | buffer.insert(components.pathname_start, "/."); |
8093 | 8093 | components.pathname_start += 2; |
| 8094 | + if (components.search_start != url_components::omitted) { |
| 8095 | + components.search_start += 2; |
| 8096 | + } |
| 8097 | + if (components.hash_start != url_components::omitted) { |
| 8098 | + components.hash_start += 2; |
| 8099 | + } |
8094 | 8100 | } |
8095 | 8101 |
|
8096 | 8102 | uint32_t difference = replace_and_resize( |
@@ -9530,13 +9536,14 @@ url_pattern_component<regex_provider>::create_component_match_result( |
9530 | 9536 | auto result = |
9531 | 9537 | url_pattern_component_result{.input = std::move(input), .groups = {}}; |
9532 | 9538 |
|
9533 | | - // Optimization: Let's reserve the size. |
9534 | | - result.groups.reserve(exec_result.size()); |
9535 | | - |
9536 | 9539 | // We explicitly start iterating from 0 even though the spec |
9537 | 9540 | // says we should start from 1. This case is handled by the |
9538 | | - // std_regex_provider. |
9539 | | - for (size_t index = 0; index < exec_result.size(); index++) { |
| 9541 | + // std_regex_provider which removes the full match from index 0. |
| 9542 | + // Use min() to guard against potential mismatches between |
| 9543 | + // exec_result size and group_name_list size. |
| 9544 | + const size_t size = std::min(exec_result.size(), group_name_list.size()); |
| 9545 | + result.groups.reserve(size); |
| 9546 | + for (size_t index = 0; index < size; index++) { |
9540 | 9547 | result.groups.emplace(group_name_list[index], |
9541 | 9548 | std::move(exec_result[index])); |
9542 | 9549 | } |
@@ -11221,14 +11228,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) { |
11221 | 11228 | #ifndef ADA_ADA_VERSION_H |
11222 | 11229 | #define ADA_ADA_VERSION_H |
11223 | 11230 |
|
11224 | | -#define ADA_VERSION "3.4.2" |
| 11231 | +#define ADA_VERSION "3.4.3" |
11225 | 11232 |
|
11226 | 11233 | namespace ada { |
11227 | 11234 |
|
11228 | 11235 | enum { |
11229 | 11236 | ADA_VERSION_MAJOR = 3, |
11230 | 11237 | ADA_VERSION_MINOR = 4, |
11231 | | - ADA_VERSION_REVISION = 2, |
| 11238 | + ADA_VERSION_REVISION = 3, |
11232 | 11239 | }; |
11233 | 11240 |
|
11234 | 11241 | } // namespace ada |
|
0 commit comments