diff options
author | Mark Felder <feld@feld.me> | 2023-12-21 01:47:12 +0000 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-12-29 23:18:45 -0500 |
commit | 347e5f33c775ae1de8bffe0ba84611b3d7a59d8f (patch) | |
tree | 0dc400f9e4d56d94107940f96137a6068b6447a2 | |
parent | 0820c23988debd0b31e917dea66fb9e122fc3a98 (diff) | |
download | pleroma-347e5f33c775ae1de8bffe0ba84611b3d7a59d8f.tar.gz pleroma-347e5f33c775ae1de8bffe0ba84611b3d7a59d8f.zip |
Fix regex string match due to OTP26 key order change
OTP25:
"<http://localhost:4001/api/v1/favourites?limit=1&max_id=Ad1FhzPIS7gcHjUcoC&offset=0>; rel=\"next\""
OTP26:
"<http://localhost:4001/api/v1/favourites?offset=0&limit=1&max_id=Ad1FmOIAXiSNgygflA>; rel=\"next\""
-rw-r--r-- | test/pleroma/web/mastodon_api/controllers/status_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs index 4e3d34172..69e087f37 100644 --- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs @@ -2191,7 +2191,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do # Using the header for pagination works correctly [next, _] = get_resp_header(result, "link") |> hd() |> String.split(", ") - [_, max_id] = Regex.run(~r/max_id=([^&]+)/, next) + [_, max_id] = Regex.run(~r/max_id=([^&]+)>.*/, next) assert max_id == third_favorite.id |