mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 02:36:52 +00:00
fix: remove unnecessary braces from favicon glob pattern
The pattern **/{favicon}.{ico,png,svg,jpg,jpeg,webp} doesn't work with
the npm glob package. Changed to **/favicon.{ico,png,svg,jpg,jpeg,webp}
which correctly matches favicon files with any of the specified extensions.
This commit is contained in:
@@ -263,7 +263,7 @@ export namespace Project {
|
|||||||
if (input.vcs !== "git") return
|
if (input.vcs !== "git") return
|
||||||
if (input.icon?.override) return
|
if (input.icon?.override) return
|
||||||
if (input.icon?.url) return
|
if (input.icon?.url) return
|
||||||
const matches = await Glob.scan("**/{favicon}.{ico,png,svg,jpg,jpeg,webp}", {
|
const matches = await Glob.scan("**/favicon.{ico,png,svg,jpg,jpeg,webp}", {
|
||||||
cwd: input.worktree,
|
cwd: input.worktree,
|
||||||
absolute: true,
|
absolute: true,
|
||||||
include: "file",
|
include: "file",
|
||||||
|
|||||||
Reference in New Issue
Block a user