Skip to content

Commit

Permalink
Add "generic-test" icon to *-{spec,test}{,s}.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis committed Apr 28, 2020
1 parent 0c66a62 commit 762a59f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
----------------------
### Added
- **New icons:** CpcdosC+ (`.cpc`), Dafny (`.dfy`, `.dafny`), Homebrew (`Brewfile`), Kaitai (`.ksy`), Macaulay2 (`.m2`), Mermaid (`.mmd`, `.mermaid`), NEON (`.neon`), Tilt (`Tiltfile`)
- **Support:** Archive (`.hqx`), C (`share/misc/getopt{,s}{0..9}`), Config (`shells`), Database (`birthtoken`, `flowers`), FontForge (`.ff`), Inno Setup (`.isl`), OpenBSD package data (`+CONTENTS`, `+DESC`, `+DISPLAY`), Roff (`{man,mdoc}.template`), Sieve (`.sieve`), Starlark (`.star`), TeX (`.texinfo`, `.txi`), Text (`share/misc/{operator,mail.{help,tildehelp}}`), Unit databases (`.units`, `units.lib`, `.units_history`), Unreal (`.uasset`)
- **Support:** Archive (`.hqx`), C (`share/misc/getopt{,s}{0..9}`), Config (`shells`), Database (`birthtoken`, `flowers`), FontForge (`.ff`), Inno Setup (`.isl`), OpenBSD package data (`+CONTENTS`, `+DESC`, `+DISPLAY`), Roff (`{man,mdoc}.template`), Sieve (`.sieve`), Starlark (`.star`), Test, Shell (`-{spec,test}{,s}.sh`), TeX (`.texinfo`, `.txi`), Text (`share/misc/{operator,mail.{help,tildehelp}}`), Unit databases (`.units`, `units.lib`, `.units_history`), Unreal (`.uasset`)

### Changed
- Changed `brew-icon` to use Homebrew logo
Expand Down
2 changes: 1 addition & 1 deletion config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -5954,7 +5954,7 @@ fileIcons:
"Test, Generic":
icon: "test-generic"
match: [
[/([\\/])t\1t?\d+(?:(?!\1).)+\.sh$/i, "medium-green", matchPath: true, priority: 1.5]
[/([\\/])t\1t?\d+(?:(?!\1).)+\.sh$|[._-](spec|test)s?\.sh$/i, "medium-green", matchPath: true, priority: 1.5]
[".test", "medium-green", priority: 0.25]
[".xspec", "dark-green"]
]
Expand Down
2 changes: 1 addition & 1 deletion lib/icons/.icondb.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ module.exports = [
["moho-icon",["medium-orange","medium-orange"],/\.mohoproj$/i,1.5],
["pros-icon",["medium-orange","medium-orange"],/^project\.pros$/i,1.5],
["test-coffee-icon",["medium-maroon","dark-maroon"],/[._-](?:spec|test)s?\.(?:(?:lit)?coffee|iced|cjsx)$/i,1.5],
["test-generic-icon",["medium-green","medium-green"],/([\\\/])t\1t?\d+(?:(?!\1).)+\.sh$/i,1.5,true],
["test-generic-icon",["medium-green","medium-green"],/([\\\/])t\1t?\d+(?:(?!\1).)+\.sh$|[._-](spec|test)s?\.sh$/i,1.5,true],
["test-go-icon",["medium-cyan","dark-cyan"],/[._-](?:spec|test)s?\.go$/i,1.5],
["test-hs-icon",["medium-purple","dark-purple"],/[._-](?:spec|test)s?\.(?:hsc?|c2hs|lhs)$/i,1.5],
["test-js-icon",["medium-yellow","dark-yellow"],/[._-](?:spec|test)s?\.(?:[_s]?js|js[bms]|es\d*)$/i,1.5],
Expand Down

0 comments on commit 762a59f

Please sign in to comment.