mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 20:10:56 -08:00
fix(themes): yarn nerdfont 3.x icon codepoint
This commit is contained in:
parent
9003be7be0
commit
4b1fbb8860
|
@ -56,6 +56,8 @@ func TestEscapeGlyphs(t *testing.T) {
|
|||
{Input: "\ufd03", Expected: "\\ufd03"},
|
||||
{Input: "}", Expected: "}"},
|
||||
{Input: "🏚", Expected: "🏚"},
|
||||
{Input: "\U000F011B", Expected: "\\udb80\\udd1b"},
|
||||
{Input: "", Expected: "\\udb80\\udd1b"},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
assert.Equal(t, tc.Expected, escapeGlyphs(tc.Input, false), tc.Input)
|
||||
|
|
|
@ -55,7 +55,7 @@ func (n *Node) loadContext() {
|
|||
return
|
||||
}
|
||||
if n.language.env.HasFiles("yarn.lock") {
|
||||
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF011B")
|
||||
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\U000F011B")
|
||||
return
|
||||
}
|
||||
if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") {
|
||||
|
|
|
@ -1500,7 +1500,7 @@
|
|||
"type": "string",
|
||||
"title": "Yarn Icon",
|
||||
"description": "Icon/text to use for Yarn",
|
||||
"default": " \uF011B"
|
||||
"default": " \udb80\udd1b"
|
||||
},
|
||||
"npm_icon": {
|
||||
"type": "string",
|
||||
|
|
Loading…
Reference in a new issue