Skip to content

Commit

Permalink
upd: color whole word when using § color codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelant05 committed Aug 23, 2022
1 parent 64c73b9 commit e9a1a1c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/components/Languages/Common/ColorCodes.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export const colorCodes = [
[/§4/, 'colorCode.darkRed'],
[/§c/, 'colorCode.red'],
[/§6/, 'colorCode.gold'],
[/§e/, 'colorCode.yellow'],
[/§2/, 'colorCode.darkGreen'],
[/§a/, 'colorCode.green'],
[/§b/, 'colorCode.aqua'],
[/§3/, 'colorCode.darkAqua'],
[/§1/, 'colorCode.darkBlue'],
[/§9/, 'colorCode.blue'],
[/§d/, 'colorCode.lightPurple'],
[/§5/, 'colorCode.darkPurple'],
[/§[fr]/, 'colorCode.white'],
[/§7/, 'colorCode.gray'],
[/§8/, 'colorCode.darkGray'],
[/§0/, 'colorCode.black'],
[/§g/, 'colorCode.minecoinGold'],
[/§o/, 'colorCode.italic'],
[/§l/, 'colorCode.bold'],
[/§n/, 'colorCode.underline'],
[/§4[^§]*/, 'colorCode.darkRed'],
[/§c[^§]*/, 'colorCode.red'],
[/§6[^§]*/, 'colorCode.gold'],
[/§e[^§]*/, 'colorCode.yellow'],
[/§2[^§]*/, 'colorCode.darkGreen'],
[/§a[^§]*/, 'colorCode.green'],
[/§b[^§]*/, 'colorCode.aqua'],
[/§3[^§]*/, 'colorCode.darkAqua'],
[/§1[^§]*/, 'colorCode.darkBlue'],
[/§9[^§]*/, 'colorCode.blue'],
[/§d[^§]*/, 'colorCode.lightPurple'],
[/§5[^§]*/, 'colorCode.darkPurple'],
[/§f[^§]*/, 'colorCode.white'],
[/§7[^§]*/, 'colorCode.gray'],
[/§8[^§]*/, 'colorCode.darkGray'],
[/§0[^§]*/, 'colorCode.black'],
[/§g[^§]*/, 'colorCode.minecoinGold'],
[/§o[^§]*/, 'colorCode.italic'],
[/§l[^§]*/, 'colorCode.bold'],
[/§n[^§]*/, 'colorCode.underline'],
]

0 comments on commit e9a1a1c

Please sign in to comment.