diff --git a/data-raw/regexs.R b/data-raw/regexs.R index 83a7387..005ed7a 100644 --- a/data-raw/regexs.R +++ b/data-raw/regexs.R @@ -4,7 +4,7 @@ regexs <- list( # original: rb"[$|\W](@([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)" mention_regex = "[$|\\W]@(([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)", # original: rb"[$|\W](https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*[-a-zA-Z0-9@%_\+~#//=])?)" - url_regex = "[$|\\W](https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*[-a-zA-Z0-9@%_\\+~#//=])?)" + url_regex = "[$|\\W](https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=!]*[-a-zA-Z0-9@%_\\+~#//=!])?)" ) usethis::use_data(regexs, overwrite = TRUE) diff --git a/data/regexs.rda b/data/regexs.rda index b75830d..9c3c1d9 100644 Binary files a/data/regexs.rda and b/data/regexs.rda differ