Kaynağa Gözat

Order template patterns by name

tags/v0.2.0
Garrick Aden-Buie 8 yıl önce
ebeveyn
işleme
3a2aa59718
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. +7
    -1
      R/regex_gadget.R

+ 7
- 1
R/regex_gadget.R Dosyayı Görüntüle

@@ -820,5 +820,11 @@ get_templates <- function() {
}
f_patterns <- system.file("extdata", "patterns.json", package = "regexplain")
if (!file.exists(f_patterns)) return(NULL)
jsonlite::fromJSON(f_patterns, simplifyVector = FALSE, simplifyDataFrame = FALSE, simplifyMatrix = FALSE)
patterns <- jsonlite::fromJSON(
f_patterns,
simplifyVector = FALSE,
simplifyDataFrame = FALSE,
simplifyMatrix = FALSE
)
patterns[order(purrr::map_chr(patterns, 'name'))]
}

Yükleniyor…
İptal
Kaydet