mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
Update quartz/plugins/filters/unlisted.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
74cda8b1ff
commit
5cc9b3cea4
@ -14,7 +14,7 @@ export function isUnlisted(
|
|||||||
|
|
||||||
const patterns = unlistedPatterns ?? cfg.unlistedPatterns
|
const patterns = unlistedPatterns ?? cfg.unlistedPatterns
|
||||||
if (patterns && patterns.length > 0 && fileData.slug) {
|
if (patterns && patterns.length > 0 && fileData.slug) {
|
||||||
const slug = fileData.slug as string
|
const slug = fileData.slug
|
||||||
for (const pattern of patterns) {
|
for (const pattern of patterns) {
|
||||||
if (minimatch(slug, pattern)) {
|
if (minimatch(slug, pattern)) {
|
||||||
return true
|
return true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user