Skip to content

Commit

Permalink
Support .tsv files (#155)
Browse files Browse the repository at this point in the history
Fixes #153
  • Loading branch information
zsteinmetz authored Oct 20, 2023
1 parent 5675be0 commit 90e780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read_multi.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#'
#' @export
read_any <- function(file, ...) {
if (grepl("(\\.csv$)|(\\.txt$)", ignore.case = T, file)) {
if (grepl("(\\.csv$)|(\\.tsv$)|(\\.txt$)", ignore.case = T, file)) {
os <- read_text(file = file, ...)
} else if (grepl("\\.[0-999]$", ignore.case = T, file)) {
os <- read_opus(file = file, ...)
Expand Down

0 comments on commit 90e780c

Please sign in to comment.