Skip to content

Commit

Permalink
Detect brackets and ' in links. Fixes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie committed Jul 19, 2018
1 parent 50fcfba commit 68fa023
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/parse_groups.R
Expand Up @@ -7,7 +7,6 @@ library("tidyverse")
rmds = c("03-Rladies.Rmd", "02_useR_groups_asia.Rmd", "02_useR_groups_europe.Rmd",
"02_useR_groups_middle_east_africa.Rmd", "02_useR_groups_north_america.Rmd",
"02_useR_groups_oceania.Rmd", "02_useR_groups_south_america.Rmd")

############################3
# 2. Function to extract data

Expand All @@ -18,7 +17,7 @@ rmd_parse = function(entry) {
group_name = NA, link = NA, twitter = NA)

## Globs
link = "\\[([\\w -]*)\\](?=\\()\\(([\\w|/|:|\\-|\\.]*)\\)"
link = "\\[([\\(\\)\\'\\w -]*)\\](?=\\()\\(([\\w|/|:|\\-|\\.]*)\\)"
city = "(.*)"
if (str_detect(entry, "^## ")) {
# page
Expand Down

0 comments on commit 68fa023

Please sign in to comment.