Skip to content

Commit

Permalink
Allow path to be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Aug 11, 2023
1 parent 8ab6eaf commit c6f677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_elements_by_type.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ split_index_path <- function(x)
# @examples is_index_path(c("1", "/1", "/11", "1/2/3"))
is_index_path <- function(x)
{
grepl("^/?([0-9]+/?)+$", x)
grepl("^/?([0-9]+/?)*$", x)
}

0 comments on commit c6f677c

Please sign in to comment.