fix: correct the glob pattern for the icons to fit the new matching algorithm (#959)

This commit is contained in:
三咲雅 · Misaki Masa 2024-04-26 22:47:29 +08:00 committed by GitHub
parent 42a0fcd5cf
commit 681612f976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 27 deletions

View File

@ -304,36 +304,36 @@ rules = [
{ name = "*.pkg", text = "", fg = "#9F0500" },
# Dotfiles
{ name = ".DS_Store" , text = "", fg = "#41535b" },
{ name = ".bashprofile" , text = "", fg = "#89e051" },
{ name = ".bashrc" , text = "", fg = "#89e051" },
{ name = ".gitattributes", text = "", fg = "#41535b" },
{ name = ".gitignore" , text = "", fg = "#41535b" },
{ name = ".gitmodules" , text = "", fg = "#41535b" },
{ name = ".vimrc" , text = "", fg = "#019833" },
{ name = ".zprofile" , text = "", fg = "#89e051" },
{ name = ".zshenv" , text = "", fg = "#89e051" },
{ name = ".zshrc" , text = "", fg = "#89e051" },
{ name = "*/.DS_Store" , text = "", fg = "#41535b" },
{ name = "*/.bash_profile" , text = "", fg = "#89e051" },
{ name = "*/.bashrc" , text = "", fg = "#89e051" },
{ name = "*/.gitattributes", text = "", fg = "#41535b" },
{ name = "*/.gitignore" , text = "", fg = "#41535b" },
{ name = "*/.gitmodules" , text = "", fg = "#41535b" },
{ name = "*/.vimrc" , text = "", fg = "#019833" },
{ name = "*/.zprofile" , text = "", fg = "#89e051" },
{ name = "*/.zshenv" , text = "", fg = "#89e051" },
{ name = "*/.zshrc" , text = "", fg = "#89e051" },
# Named files
{ name = "COPYING" , text = "󰿃", fg = "#cbcb41" },
{ name = "Containerfile", text = "󰡨", fg = "#458ee6" },
{ name = "Dockerfile" , text = "󰡨", fg = "#458ee6" },
{ name = "LICENSE" , text = "󰿃", fg = "#d0bf41" },
{ name = "*/COPYING" , text = "󰿃", fg = "#cbcb41" },
{ name = "*/Containerfile", text = "󰡨", fg = "#458ee6" },
{ name = "*/Dockerfile" , text = "󰡨", fg = "#458ee6" },
{ name = "*/LICENSE" , text = "󰿃", fg = "#d0bf41" },
# Directories
{ name = ".config/" , text = "" },
{ name = ".git/" , text = "" },
{ name = "Desktop/" , text = "" },
{ name = "Development/", text = "" },
{ name = "Documents/" , text = "" },
{ name = "Downloads/" , text = "" },
{ name = "Library/" , text = "" },
{ name = "Movies/" , text = "" },
{ name = "Music/" , text = "" },
{ name = "Pictures/" , text = "" },
{ name = "Public/" , text = "" },
{ name = "Videos/" , text = "" },
{ name = "*/.config/" , text = "" },
{ name = "*/.git/" , text = "" },
{ name = "*/Desktop/" , text = "" },
{ name = "*/Development/", text = "" },
{ name = "*/Documents/" , text = "" },
{ name = "*/Downloads/" , text = "" },
{ name = "*/Library/" , text = "" },
{ name = "*/Movies/" , text = "" },
{ name = "*/Music/" , text = "" },
{ name = "*/Pictures/" , text = "" },
{ name = "*/Public/" , text = "" },
{ name = "*/Videos/" , text = "" },
# Default
{ name = "*" , text = "" },

View File

@ -36,7 +36,7 @@ impl TryFrom<&str> for Pattern {
let inner = GlobBuilder::new(b)
.case_insensitive(a.len() == s.len())
.literal_separator(b.contains('/'))
.literal_separator(false)
.backslash_escape(false)
.empty_alternates(false)
.build()?