Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kctekn committed Dec 6, 2024
1 parent 6ec80bc commit 283e364
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>([
Expand Down
2 changes: 1 addition & 1 deletion src/views/TagsRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 283e364

Please sign in to comment.