|
1 | | -/* auto-generated on 2025-02-23 20:08:55 -0500. Do not edit! */ |
| 1 | +/* auto-generated on 2025-02-26 20:29:12 -0500. Do not edit! */ |
2 | 2 | /* begin file include/ada.h */ |
3 | 3 | /** |
4 | 4 | * @file ada.h |
@@ -290,7 +290,8 @@ bool valid_name_code_point(char32_t input, bool first); |
290 | 290 | ADA_DISABLE_GCC_WARNING("-Wreturn-type") \ |
291 | 291 | ADA_DISABLE_GCC_WARNING("-Wshadow") \ |
292 | 292 | ADA_DISABLE_GCC_WARNING("-Wunused-parameter") \ |
293 | | - ADA_DISABLE_GCC_WARNING("-Wunused-variable") |
| 293 | + ADA_DISABLE_GCC_WARNING("-Wunused-variable") \ |
| 294 | + ADA_DISABLE_GCC_WARNING("-Wsign-compare") |
294 | 295 | #define ADA_PRAGMA(P) _Pragma(#P) |
295 | 296 | #define ADA_DISABLE_GCC_WARNING(WARNING) \ |
296 | 297 | ADA_PRAGMA(GCC diagnostic ignored WARNING) |
@@ -9202,34 +9203,32 @@ result<std::optional<url_pattern_result>> url_pattern<regex_provider>::match( |
9202 | 9203 | // https://github.com/cloudflare/workerd/blob/8620d14012513a6ce04d079e401d3becac3c67bd/src/workerd/jsg/url.c%2B%2B#L2038 |
9203 | 9204 | protocol = url->get_protocol().substr(0, url->get_protocol().size() - 1); |
9204 | 9205 | // Set username to url’s username. |
9205 | | - username = std::move(url->get_username()); |
| 9206 | + username = url->get_username(); |
9206 | 9207 | // Set password to url’s password. |
9207 | | - password = std::move(url->get_password()); |
| 9208 | + password = url->get_password(); |
9208 | 9209 | // Set hostname to url’s host, serialized, or the empty string if the value |
9209 | 9210 | // is null. |
9210 | | - hostname = std::move(url->get_hostname()); |
| 9211 | + hostname = url->get_hostname(); |
9211 | 9212 | // Set port to url’s port, serialized, or the empty string if the value is |
9212 | 9213 | // null. |
9213 | | - port = std::move(url->get_port()); |
| 9214 | + port = url->get_port(); |
9214 | 9215 | // Set pathname to the result of URL path serializing url. |
9215 | | - pathname = std::move(url->get_pathname()); |
| 9216 | + pathname = url->get_pathname(); |
9216 | 9217 | // Set search to url’s query or the empty string if the value is null. |
9217 | 9218 | // IMPORTANT: Not documented on the URLPattern spec, but search prefix '?' |
9218 | 9219 | // is removed. Similar work was done on workerd: |
9219 | 9220 | // https://github.com/cloudflare/workerd/blob/8620d14012513a6ce04d079e401d3becac3c67bd/src/workerd/jsg/url.c%2B%2B#L2232 |
9220 | 9221 | if (url->has_search()) { |
9221 | 9222 | auto view = url->get_search(); |
9222 | | - search = |
9223 | | - view.starts_with("?") ? url->get_search().substr(1) : std::move(view); |
| 9223 | + search = view.starts_with("?") ? url->get_search().substr(1) : view; |
9224 | 9224 | } |
9225 | 9225 | // Set hash to url’s fragment or the empty string if the value is null. |
9226 | 9226 | // IMPORTANT: Not documented on the URLPattern spec, but hash prefix '#' is |
9227 | 9227 | // removed. Similar work was done on workerd: |
9228 | 9228 | // https://github.com/cloudflare/workerd/blob/8620d14012513a6ce04d079e401d3becac3c67bd/src/workerd/jsg/url.c%2B%2B#L2242 |
9229 | 9229 | if (url->has_hash()) { |
9230 | 9230 | auto view = url->get_hash(); |
9231 | | - hash = |
9232 | | - view.starts_with("#") ? url->get_hash().substr(1) : std::move(view); |
| 9231 | + hash = view.starts_with("#") ? url->get_hash().substr(1) : view; |
9233 | 9232 | } |
9234 | 9233 | } |
9235 | 9234 |
|
@@ -9456,7 +9455,8 @@ constructor_string_parser<regex_provider>::is_non_special_pattern_char( |
9456 | 9455 | // If token’s value is not value, then return false. |
9457 | 9456 | // TODO: Remove this once we make sure get_safe_token returns a non-empty |
9458 | 9457 | // string. |
9459 | | - if (!token->value.empty() && token->value[0] != value) { |
| 9458 | + if (!token->value.empty() && |
| 9459 | + static_cast<uint32_t>(token->value[0]) != value) { |
9460 | 9460 | return false; |
9461 | 9461 | } |
9462 | 9462 |
|
@@ -10454,14 +10454,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) { |
10454 | 10454 | #ifndef ADA_ADA_VERSION_H |
10455 | 10455 | #define ADA_ADA_VERSION_H |
10456 | 10456 |
|
10457 | | -#define ADA_VERSION "3.1.1" |
| 10457 | +#define ADA_VERSION "3.1.3" |
10458 | 10458 |
|
10459 | 10459 | namespace ada { |
10460 | 10460 |
|
10461 | 10461 | enum { |
10462 | 10462 | ADA_VERSION_MAJOR = 3, |
10463 | 10463 | ADA_VERSION_MINOR = 1, |
10464 | | - ADA_VERSION_REVISION = 1, |
| 10464 | + ADA_VERSION_REVISION = 3, |
10465 | 10465 | }; |
10466 | 10466 |
|
10467 | 10467 | } // namespace ada |
|
0 commit comments