Skip to content

Commit

Permalink
Also allow . to be a delimiter for a link.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed May 16, 2024
1 parent 76258cd commit 77d600d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/link-elements.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ markup_href <- function(x) {
common_regex <- function(which) {
x <- c(
# usage of double negation will make it work
md_url = "(?<!\\{\\.href\\s)(\\[[^\\[\\]]+\\])(\\(https[^,\\s]+\\)(?![^\\s,\\:;$\\)]))",
md_url = "(?<!\\{\\.href\\s)(\\[[^\\[\\]]+\\])(\\(https[^,\\s]+\\)(?![^\\s,\\:;\\.$\\)]))",
gh_issue = "([[:alpha:]][[:graph:]]+/[^#\\s]+)#(\\d+)"
)
unname(x[which])
Expand Down

0 comments on commit 77d600d

Please sign in to comment.