소스 검색

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…
취소
저장