浏览代码

Fix base16 name extraction regex

base16
父节点
当前提交
441afd0ae9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      R/make_functions.R

+ 2
- 1
R/make_functions.R 查看文件

@@ -70,6 +70,7 @@ get_base16_theme_info <- function(palette_file) {
if (base16_meta[2] == "") {
info$rstudio_style <- "/* rs-theme-is-dark: TRUE */"
}
info$name <- stringr::str_match(info$attribution, "\\s*([\\w ]+) by")[1, 2]
rgx_name <- "/\\*\\s*([[:alpha:][:punct:] ]+) by"
info$name <- stringr::str_match(info$attribution, rgx_name)[1, 2]
info
}

正在加载...
取消
保存