Skip to content

Commit 5cfe6e0

Browse files
committed
include period in extension string test
1 parent 28e2cf1 commit 5cfe6e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/command/render/filters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ import { quartoConfig } from "../../core/quarto.ts";
8787
import { metadataNormalizationFilterActive } from "./normalize.ts";
8888
import { kCodeAnnotations } from "../../format/html/format-html-shared.ts";
8989
import { projectOutputDir } from "../../project/project-shared.ts";
90-
import { extname, join, relative, resolve } from "../../deno_ral/path.ts";
90+
import { extname, relative, resolve } from "../../deno_ral/path.ts";
9191
import { citeIndexFilterParams } from "../../project/project-cites.ts";
9292
import { debug } from "../../deno_ral/log.ts";
9393
import { kJatsSubarticle } from "../../format/jats/format-jats-types.ts";
@@ -891,9 +891,9 @@ async function resolveFilterExtension(
891891
}
892892
}
893893

894-
// The filter string points to an executable file which exists
894+
// The filter string points to a file which exists
895895
if (existsSync(filter) && !Deno.statSync(filter).isDirectory) {
896-
const type = extname(filter) !== "lua" ? "json" : "lua";
896+
const type = extname(filter) !== ".lua" ? "json" : "lua";
897897
return {
898898
at: "__quarto-auto",
899899
type,

0 commit comments

Comments
 (0)