Skip to content

Commit e882398

Browse files
Update emoji set to Unicode 15 (#25595)
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]>
1 parent fdf7146 commit e882398

File tree

5 files changed

+47
-5
lines changed

5 files changed

+47
-5
lines changed

.github/workflows/files-changed.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ jobs:
3939
backend:
4040
- "**/*.go"
4141
- "templates/**/*.tmpl"
42+
- "assets/emoji.json"
4243
- "go.mod"
4344
- "go.sum"
4445
- "Makefile"
4546
4647
frontend:
4748
- "**/*.js"
4849
- "web_src/**"
50+
- "assets/emoji.json"
4951
- "package.json"
5052
- "package-lock.json"
5153
- "Makefile"

assets/emoji.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generate-emoji.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
const (
2727
gemojiURL = "https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json"
28-
maxUnicodeVersion = 14
28+
maxUnicodeVersion = 15
2929
)
3030

3131
var flagOut = flag.String("o", "modules/emoji/emoji_data.go", "out")

modules/emoji/emoji_data.go

Lines changed: 39 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web_src/js/utils/match.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ test('matchEmoji', () => {
3939
expect(matchEmoji('1st_')).toEqual([
4040
'1st_place_medal',
4141
]);
42+
43+
expect(matchEmoji('jellyfis')).toEqual([
44+
'jellyfish',
45+
]);
4246
});
4347

4448
test('matchMention', () => {

0 commit comments

Comments
 (0)