Просмотр исходного кода

Allow source field in patterns to render HTML

tags/v0.2.0
Garrick Aden-Buie 8 лет назад
Родитель
Сommit
cb8807526c
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      R/regex_gadget.R

+ 1
- 1
R/regex_gadget.R Просмотреть файл

tags$pre(tp$regex), tags$pre(tp$regex),
if (!is.null(tp$source)) tags$p( if (!is.null(tp$source)) tags$p(
"Source:", "Source:",
if (grepl(rx_url, tp$source)) tags$a(href = tp$source, tp$source) else tp$source
if (grepl(rx_url, tp$source)) tags$a(href = tp$source, tp$source) else HTML(tp$source)
) )
) )
}) })

Загрузка…
Отмена
Сохранить