Skip to content

Commit dc6a469

Browse files
committed
fix: more specific reprex
1 parent fb62550 commit dc6a469

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/render.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ render_quarto_lang <- function(language_code, path, output_dir, type) {
255255
glob = "*.qmd",
256256
recurse = TRUE
257257
)
258-
language_qmds <- qmds[grepl(sprintf("%s.qmd", language_code), qmds)]
258+
language_qmds <- purrr::keep(
259+
qmds, \(x) endsWith(x, sprintf(".%s.qmd", language_code))
260+
)
259261
fs::file_delete(qmds[!(qmds %in% language_qmds)])
260262
for (qmd_path in language_qmds) {
261263
fs::file_move(

0 commit comments

Comments
 (0)