You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yarden Shoham 3cc87370c3
Improve emoji and mention matching (#24255)
Prioritize matches that start with the given text, then matches that
contain the given text.

I wanted to add a heart emoji on a pull request comment so I started
writing `:`, `h`, `e`, `a`, `r` (at this point I still couldn't find the
heart), `t`... The heart was not on the list, that's weird - it feels
like I made a typo or a mistake. This fixes that.

This also feels more like GitHub's emoji auto-complete.

# Before

![image](https://user-images.githubusercontent.com/20454870/233630750-bd0a1b76-33d0-41d4-9218-a37b670c42b0.png)

# After

![image](https://user-images.githubusercontent.com/20454870/233775128-05e67fc1-e092-4025-b6f7-1fd8e5f71e87.png)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
1 year ago
..
components Use same action status svg icons on actions list as on action page (#24178) 1 year ago
features Improve emoji and mention matching (#24255) 1 year ago
markup Fix math and mermaid rendering bugs (#24049) 1 year ago
modules Use 1.18's aria role for dropdown menus (#24144) 1 year ago
standalone Add new JS linter rules (#17699) 3 years ago
test Improve emoji and mention matching (#24255) 1 year ago
utils Improve emoji and mention matching (#24255) 1 year ago
webcomponents Refactor locale number (#24134) 1 year ago
bootstrap.js Show friendly 500 error page to users and developers (#24110) 1 year ago
index.js Use auto-updating, natively hoverable, localized time elements (#23988) 1 year ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 4 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 4 years ago
svg.js Improve `<SvgIcon>` to make it output `svg` node and optimize performance (#23570) 1 year ago
svg.test.js Improve `<SvgIcon>` to make it output `svg` node and optimize performance (#23570) 1 year ago
utils.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
utils.test.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago