Skip to content

Commit

Permalink
修复正则 Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangyunHuang committed Jan 30, 2024
1 parent 1fe65fa commit 42cdc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrangling-collection.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pdb <- subset(
select = c("Package", "Maintainer", "Title", "BugReports")
)
# 掐头去尾
pdb$repo <- sub(x = pdb$BugReports, pattern = "(http|https)://(www\.){0,1}github\\.com/", replacement = "")
pdb$repo <- sub(x = pdb$BugReports, pattern = "(http|https)://(www\\.){0,1}github\\.com/", replacement = "")
pdb$repo <- sub(x = pdb$repo, pattern = "/{1,}(issues|blob).*", replacement = "")
pdb$repo <- sub(x = pdb$repo, pattern = "/$", replacement = "")
```
Expand Down

0 comments on commit 42cdc63

Please sign in to comment.