From 283e3645f7df2bc4aec972eabf1cd7d15803c5de Mon Sep 17 00:00:00 2001 From: ken Date: Sun, 24 Nov 2024 17:24:20 +0800 Subject: [PATCH] update --- src/util/util.ts | 8 ++++---- src/views/TagsRoutes.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/util.ts b/src/util/util.ts index 79f42e6..a48ebc9 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -195,15 +195,15 @@ export class PathFilter { } private static isGlobPattern(pattern: string): boolean { - return pattern.includes('*') || pattern.includes('?'); + return pattern.includes('*') || pattern.includes('?')|| pattern.includes('.'); } private static globToRegex(glob: string): string { return glob .replace(/\*/g, '.*') - // .replace(/\?/g, '.') - // .replace(/\./g, '\\.') - // .replace(/\\/g, '\\\\'); + .replace(/\./g, '\\.') + .replace(/\?/g, '.') + // .replace(/\\/g, '\\\\'); } } export const namedColor = new Map([ diff --git a/src/views/TagsRoutes.ts b/src/views/TagsRoutes.ts index c6c9102..918e733 100644 --- a/src/views/TagsRoutes.ts +++ b/src/views/TagsRoutes.ts @@ -2674,7 +2674,7 @@ export class TagRoutesView extends ItemView { new settingGroup(this.plugin, "Tags' route settings", "Tags' route settings", "root").hide() .add({ arg: (new settingGroup(this.plugin, "commands", "Node commands")) - .addDropdown("Select orphan", this.getOrphanNodes(this.gData.nodes)/* { broken: "broken", pdf: "pdf", excalidraw: "excalidraw" }*/, "broken", this.onDropdown) + .addDropdown("Select orphan", this.getOrphanNodes(this.gData0.nodes)/* { broken: "broken", pdf: "pdf", excalidraw: "excalidraw" }*/, "broken", this.onDropdown) .add({ arg: (new settingGroup(this.plugin, "link-box", "link-box", "flex-box") .addExButton("circle-dashed", "Link orphan type as a star", () => this.onLinkButton(true))