Procházet zdrojové kódy

Fix base16 name extraction regex

base16
Garrick Aden-Buie před 7 roky
rodič
revize
441afd0ae9
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      R/make_functions.R

+ 2
- 1
R/make_functions.R Zobrazit soubor

@@ -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
}

Načítá se…
Zrušit
Uložit