mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Bump github.com/kyokomi/emoji/v2 from 2.2.8 to 2.2.13 (#5481)
Bumps [github.com/kyokomi/emoji/v2](https://github.com/kyokomi/emoji) from 2.2.8 to 2.2.13. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/kyokomi/emoji/releases">github.com/kyokomi/emoji/v2's releases</a>.</em></p> <blockquote> <h2>v2.2.13</h2> <p><strong>Full Changelog</strong>: <a href="https://github.com/kyokomi/emoji/compare/v2.2.12...v2.2.13">https://github.com/kyokomi/emoji/compare/v2.2.12...v2.2.13</a></p> <h2>v2.2.12</h2> <h2>What's Changed</h2> <ul> <li>Add workflow to check generateEmojiCodeMap by <a href="https://github.com/kyokomi"><code>@kyokomi</code></a> in <a href="https://redirect.github.com/kyokomi/emoji/pull/61">kyokomi/emoji#61</a></li> <li>Fix export <code>emojize</code> for use with the transform package etc. by <a href="https://github.com/kyokomi"><code>@kyokomi</code></a> in <a href="https://redirect.github.com/kyokomi/emoji/pull/62">kyokomi/emoji#62</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/kyokomi/emoji/compare/v2.2.11...v2.2.12">https://github.com/kyokomi/emoji/compare/v2.2.11...v2.2.12</a></p> <h2>v2.2.11</h2> <h2>What's Changed</h2> <ul> <li>Support github actions CI by <a href="https://github.com/kyokomi"><code>@kyokomi</code></a> in <a href="https://redirect.github.com/kyokomi/emoji/pull/56">kyokomi/emoji#56</a></li> <li>Upgrade emoji by <a href="https://github.com/kyokomi"><code>@kyokomi</code></a> in <a href="https://redirect.github.com/kyokomi/emoji/pull/57">kyokomi/emoji#57</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/kyokomi/emoji/compare/v2.2.10...v2.2.11">https://github.com/kyokomi/emoji/compare/v2.2.10...v2.2.11</a></p> <h2>v2.2.10</h2> <h2>What's Changed</h2> <ul> <li>Update emoji by <a href="https://github.com/kyokomi"><code>@kyokomi</code></a> in <a href="https://redirect.github.com/kyokomi/emoji/pull/55">kyokomi/emoji#55</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/kyokomi/emoji/compare/v2.2.9...v2.2.10">https://github.com/kyokomi/emoji/compare/v2.2.9...v2.2.10</a></p> <h2>v2.2.9</h2> <ul> <li>Update emojis</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="6143718b8c"><code>6143718</code></a> Update emoji</li> <li><a href="3a71330d6d"><code>3a71330</code></a> Delete check_generate.yml</li> <li><a href="9db2baf434"><code>9db2baf</code></a> Update unicodeorg url</li> <li><a href="b24f485ed9"><code>b24f485</code></a> fit typo</li> <li><a href="c37c65064a"><code>c37c650</code></a> Fix export <code>emojize</code> for use with the transform package etc. (<a href="https://redirect.github.com/kyokomi/emoji/issues/62">#62</a>)</li> <li><a href="6bdd002db2"><code>6bdd002</code></a> Add workflow to check generateEmojiCodeMap (<a href="https://redirect.github.com/kyokomi/emoji/issues/61">#61</a>)</li> <li><a href="44f96761fd"><code>44f9676</code></a> Upgrade emoji (<a href="https://redirect.github.com/kyokomi/emoji/issues/57">#57</a>)</li> <li><a href="52125aba27"><code>52125ab</code></a> Support github actions CI (<a href="https://redirect.github.com/kyokomi/emoji/issues/56">#56</a>)</li> <li><a href="0a30350313"><code>0a30350</code></a> Merge pull request <a href="https://redirect.github.com/kyokomi/emoji/issues/55">#55</a> from kyokomi/feature/kyokomi/emoji_generate</li> <li><a href="2cd1718ccb"><code>2cd1718</code></a> fix tool install</li> <li>Additional commits viewable in <a href="https://github.com/kyokomi/emoji/compare/v2.2.8...v2.2.13">compare view</a></li> </ul> </details> <br />
This commit is contained in:
commit
c852855238
2
go.mod
2
go.mod
|
|
@ -22,7 +22,7 @@ require (
|
|||
github.com/jesseduffield/lazycore v0.0.0-20221012050358-03d2e40243c5
|
||||
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
|
||||
github.com/karimkhaleel/jsonschema v0.0.0-20231001195015-d933f0d94ea3
|
||||
github.com/kyokomi/emoji/v2 v2.2.8
|
||||
github.com/kyokomi/emoji/v2 v2.2.13
|
||||
github.com/lucasb-eyer/go-colorful v1.4.0
|
||||
github.com/mgutz/str v1.2.0
|
||||
github.com/mitchellh/go-ps v1.0.0
|
||||
|
|
|
|||
4
go.sum
4
go.sum
|
|
@ -68,8 +68,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
|||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
|
||||
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
|
||||
github.com/kyokomi/emoji/v2 v2.2.8 h1:jcofPxjHWEkJtkIbcLHvZhxKgCPl6C7MyjTrD4KDqUE=
|
||||
github.com/kyokomi/emoji/v2 v2.2.8/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
|
||||
github.com/kyokomi/emoji/v2 v2.2.13 h1:GhTfQa67venUUvmleTNFnb+bi7S3aocF7ZCXU9fSO7U=
|
||||
github.com/kyokomi/emoji/v2 v2.2.13/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
|
||||
github.com/lucasb-eyer/go-colorful v1.4.0 h1:UtrWVfLdarDgc44HcS7pYloGHJUjHV/4FwW4TvVgFr4=
|
||||
github.com/lucasb-eyer/go-colorful v1.4.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
|
||||
|
|
|
|||
2
vendor/github.com/kyokomi/emoji/v2/README.md
generated
vendored
2
vendor/github.com/kyokomi/emoji/v2/README.md
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
# Emoji
|
||||
Emoji is a simple golang package.
|
||||
|
||||
[](https://app.wercker.com/project/byKey/7bef60de2c6d3e0e6c13d56b2393c5d8)
|
||||

|
||||
[](https://coveralls.io/r/kyokomi/emoji?branch=master)
|
||||
[](https://pkg.go.dev/github.com/kyokomi/emoji/v2)
|
||||
|
||||
|
|
|
|||
13
vendor/github.com/kyokomi/emoji/v2/emoji.go
generated
vendored
13
vendor/github.com/kyokomi/emoji/v2/emoji.go
generated
vendored
|
|
@ -49,7 +49,8 @@ func NormalizeShortCode(shortCode string) string {
|
|||
// regular expression that matches :flag-[countrycode]:
|
||||
var flagRegexp = regexp.MustCompile(":flag-([a-z]{2}):")
|
||||
|
||||
func emojize(x string) string {
|
||||
// Emojize Converts the string passed as an argument to a emoji. For unsupported emoji, the string passed as an argument is returned as is.
|
||||
func Emojize(x string) string {
|
||||
str, ok := emojiCode()[x]
|
||||
if ok {
|
||||
return str + ReplacePadding
|
||||
|
|
@ -65,17 +66,17 @@ func regionalIndicator(i byte) string {
|
|||
return string('\U0001F1E6' + rune(i) - 'a')
|
||||
}
|
||||
|
||||
func replaseEmoji(input *bytes.Buffer) string {
|
||||
func replaceEmoji(input *bytes.Buffer) string {
|
||||
emoji := bytes.NewBufferString(":")
|
||||
for {
|
||||
i, _, err := input.ReadRune()
|
||||
if err != nil {
|
||||
// not replase
|
||||
// not replace
|
||||
return emoji.String()
|
||||
}
|
||||
|
||||
if i == ':' && emoji.Len() == 1 {
|
||||
return emoji.String() + replaseEmoji(input)
|
||||
return emoji.String() + replaceEmoji(input)
|
||||
}
|
||||
|
||||
emoji.WriteRune(i)
|
||||
|
|
@ -83,7 +84,7 @@ func replaseEmoji(input *bytes.Buffer) string {
|
|||
case unicode.IsSpace(i):
|
||||
return emoji.String()
|
||||
case i == ':':
|
||||
return emojize(emoji.String())
|
||||
return Emojize(emoji.String())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -105,7 +106,7 @@ func compile(x string) string {
|
|||
default:
|
||||
output.WriteRune(i)
|
||||
case ':':
|
||||
output.WriteString(replaseEmoji(input))
|
||||
output.WriteString(replaceEmoji(input))
|
||||
}
|
||||
}
|
||||
return output.String()
|
||||
|
|
|
|||
9760
vendor/github.com/kyokomi/emoji/v2/emoji_codemap.go
generated
vendored
9760
vendor/github.com/kyokomi/emoji/v2/emoji_codemap.go
generated
vendored
File diff suppressed because it is too large
Load diff
33
vendor/github.com/kyokomi/emoji/v2/wercker.yml
generated
vendored
33
vendor/github.com/kyokomi/emoji/v2/wercker.yml
generated
vendored
|
|
@ -1,33 +0,0 @@
|
|||
box: golang
|
||||
build:
|
||||
steps:
|
||||
- setup-go-workspace
|
||||
- script:
|
||||
name: go version
|
||||
code: go version
|
||||
- script:
|
||||
name: install tools
|
||||
code: |
|
||||
go get github.com/mattn/goveralls
|
||||
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
- script:
|
||||
name: go get
|
||||
code: |
|
||||
go get ./...
|
||||
- script:
|
||||
name: go build
|
||||
code: |
|
||||
go build ./...
|
||||
- script:
|
||||
name: golangci-lint
|
||||
code: |
|
||||
golangci-lint run
|
||||
- script:
|
||||
name: go test
|
||||
code: |
|
||||
go test ./...
|
||||
- script:
|
||||
name: coveralls
|
||||
code: |
|
||||
goveralls -v -service wercker.com -repotoken $COVERALLS_TOKEN
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
|
@ -119,7 +119,7 @@ github.com/kr/logfmt
|
|||
## explicit; go 1.12
|
||||
# github.com/kylelemons/godebug v1.1.0
|
||||
## explicit; go 1.11
|
||||
# github.com/kyokomi/emoji/v2 v2.2.8
|
||||
# github.com/kyokomi/emoji/v2 v2.2.13
|
||||
## explicit; go 1.14
|
||||
github.com/kyokomi/emoji/v2
|
||||
# github.com/lucasb-eyer/go-colorful v1.4.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue