瀏覽代碼

Fix base16 name extraction regex

base16
Garrick Aden-Buie 7 年之前
父節點
當前提交
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
}

Loading…
取消
儲存