Skip to content

Commit

Permalink
Update emoji set to Unicode 15 (#25595)
Browse files Browse the repository at this point in the history
Update emoji set to Unicode 15 which was added upstream here:
github/gemoji@cb5c514

<img width="854" alt="Screenshot 2023-06-29 at 11 02 56 AM"
src="https://github.com/go-gitea/gitea/assets/1669571/7bfb663d-0804-4d23-a62d-f585a6783ca6">

---------

Co-authored-by: silverwind <[email protected]>
  • Loading branch information
mrsdizzie and silverwind authored Jun 29, 2023
1 parent fdf7146 commit e882398
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/files-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ jobs:
backend:
- "**/*.go"
- "templates/**/*.tmpl"
- "assets/emoji.json"
- "go.mod"
- "go.sum"
- "Makefile"
frontend:
- "**/*.js"
- "web_src/**"
- "assets/emoji.json"
- "package.json"
- "package-lock.json"
- "Makefile"
Expand Down
2 changes: 1 addition & 1 deletion assets/emoji.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/generate-emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

const (
gemojiURL = "https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json"
maxUnicodeVersion = 14
maxUnicodeVersion = 15
)

var flagOut = flag.String("o", "modules/emoji/emoji_data.go", "out")
Expand Down
42 changes: 39 additions & 3 deletions modules/emoji/emoji_data.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions web_src/js/utils/match.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ test('matchEmoji', () => {
expect(matchEmoji('1st_')).toEqual([
'1st_place_medal',
]);

expect(matchEmoji('jellyfis')).toEqual([
'jellyfish',
]);
});

test('matchMention', () => {
Expand Down

0 comments on commit e882398

Please sign in to comment.