Skip to content

Commit 311743b

Browse files
feat: update yarn icon
1 parent 5c9c70b commit 311743b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/config/migrate_glyphs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func TestEscapeGlyphs(t *testing.T) {
2626
{Input: "\ufd03", Expected: "\\ufd03"},
2727
{Input: "}", Expected: "}"},
2828
{Input: "🏚", Expected: "🏚"},
29-
{Input: "\U000F011B", Expected: "\\udb80\\udd1b"},
30-
{Input: "󰄛", Expected: "\\udb80\\udd1b"},
29+
{Input: "\U000f0bc9", Expected: "\\udb82\\udfc9"},
30+
{Input: "󰯉", Expected: "\\udb82\\udfc9"},
3131
}
3232
for _, tc := range cases {
3333
assert.Equal(t, tc.Expected, EscapeGlyphs(tc.Input, false), tc.Input)

src/segments/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (n *Node) loadContext() {
7070
fileName: "yarn.lock",
7171
name: "yarn",
7272
iconProperty: YarnIcon,
73-
defaultIcon: "\U000F011B",
73+
defaultIcon: "\ue6a7",
7474
},
7575
{
7676
fileName: "bun.lockb",

src/segments/yarn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type Yarn struct {
55
}
66

77
func (n *Yarn) Template() string {
8-
return " \U000F011B {{.Full}} "
8+
return " \ue6a7 {{.Full}} "
99
}
1010

1111
func (n *Yarn) Enabled() bool {

src/segments/yarn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestYarn(t *testing.T) {
1313
ExpectedString string
1414
Version string
1515
}{
16-
{Case: "1.0.0", ExpectedString: "\U000F011B 1.0.0", Version: "1.0.0"},
16+
{Case: "1.0.0", ExpectedString: "\ue6a7 1.0.0", Version: "1.0.0"},
1717
}
1818
for _, tc := range cases {
1919
params := &mockedLanguageParams{

website/docs/segments/cli/yarn.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Config from "@site/src/components/Config.js";
1919
powerline_symbol: "\uE0B0",
2020
foreground: "#FFFFFF",
2121
background: "#2E2A65",
22-
template: " \uDB80\uDD1B {{ .Full }} ",
22+
template: " \ue6a7 {{ .Full }} ",
2323
}}
2424
/>
2525

@@ -41,7 +41,7 @@ import Config from "@site/src/components/Config.js";
4141
:::note default template
4242

4343
```template
44-
\uDB80\uDD1B {{.Full}}
44+
\ue6a7 {{.Full}}
4545
```
4646

4747
:::

0 commit comments

Comments
 (0)