mirror of https://github.com/zulip/zulip.git
search pills: Decode display value.
https://chat.zulip.org/#narrow/stream/9-issues/topic/.F0.9F.8E.AF.20quotes.20representation.20in.20pills/near/1890117
This commit is contained in:
parent
05d4e02dcd
commit
c622622135
|
@ -12,6 +12,7 @@ import * as keydown_util from "./keydown_util";
|
|||
import type {SearchUserPill} from "./search_pill";
|
||||
import type {StreamSubscription} from "./sub_store";
|
||||
import * as ui_util from "./ui_util";
|
||||
import * as util from "./util";
|
||||
|
||||
// See https://zulip.readthedocs.io/en/latest/subsystems/input-pills.html
|
||||
|
||||
|
@ -189,6 +190,7 @@ export function create<T>(opts: InputPillCreateOptions<T>): InputPillContainer<T
|
|||
if (item.type === "search") {
|
||||
display_value = display_value.replaceAll("+", " ");
|
||||
display_value = display_value.replace(":", ": ");
|
||||
display_value = util.robust_url_decode(display_value).trim();
|
||||
}
|
||||
|
||||
const opts: InputPillRenderingDetails = {
|
||||
|
|
Loading…
Reference in New Issue