mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
mobile sharing: Extract shared/js/typeahead.js.
This extracts get_emoji_matcher and all the functions it depended on, most of which were in composebox_typeahead.js. We also move remove_diacritics out of the people module. This is the first major step for #13728.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const typeahead = zrequire('typeahead', 'shared/js/typeahead');
|
||||
set_global('i18n', global.stub_i18n);
|
||||
zrequire('compose_state');
|
||||
zrequire('ui_util');
|
||||
@@ -662,7 +663,7 @@ run_test('initialize', () => {
|
||||
assert.equal(actual_value, expected_value);
|
||||
|
||||
function matcher(query, person) {
|
||||
query = ct.clean_query_lowercase(query);
|
||||
query = typeahead.clean_query_lowercase(query);
|
||||
return ct.query_matches_person(query, person);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user