diff --git a/NEWS.md b/NEWS.md index b7370455..6fe9c7aa 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # fs (development version) +* `path_ext()` returns extension when multiple dots are present in file name (@IndrajeetPatil, #452). + # fs 1.6.4 * No changes. diff --git a/R/path.R b/R/path.R index 8dc557ef..8d904a33 100644 --- a/R/path.R +++ b/R/path.R @@ -359,7 +359,7 @@ path_ext <- function(path) { return(character()) } - res <- captures(path_file(path), regexpr("(?