Does a string end with one or two dots (".", "..")?
Examples
isDotOrDoubleDot(c("a", "b.", "c..", "d", "efg..h"))
#> [1] FALSE TRUE TRUE FALSE FALSE
Does a string end with one or two dots (".", "..")?
isDotOrDoubleDot(c("a", "b.", "c..", "d", "efg..h"))
#> [1] FALSE TRUE TRUE FALSE FALSE