Skip to content

Commit ab097cc

Browse files
committed
Anchor the regex for finding README.Rmd files
Closes #2628, Closes #2629
1 parent 666e0d6 commit ab097cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/build-readme.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ build_rmd <- function(
6363
build_readme <- function(path = ".", quiet = TRUE, ...) {
6464
pkg <- as.package(path)
6565

66-
regexp <- paste0(path_file(pkg$path), "/(inst/)?readme[.]rmd")
66+
regexp <- paste0(path_file(pkg$path), "/(inst/)?readme[.]rmd$")
6767
readme_path <- path_abs(dir_ls(
6868
pkg$path,
6969
ignore.case = TRUE,

0 commit comments

Comments
 (0)