[#1794] Fixed search query splitting regex to deal with Unicode. Adjusted a test.

This commit is contained in:
Ivan Tashkinov 2020-05-30 10:29:08 +03:00
commit 24f40b8a26
2 changed files with 5 additions and 1 deletions

View file

@ -71,6 +71,10 @@ defmodule Pleroma.Web.MastodonAPI.SearchControllerTest do
get(conn, "/api/v2/search?q=天子")
|> json_response_and_validate_schema(200)
assert results["hashtags"] == [
%{"name" => "天子", "url" => "#{Web.base_url()}/tag/天子"}
]
[status] = results["statuses"]
assert status["id"] == to_string(activity.id)
end