shinyMobile icon indicating copy to clipboard operation
shinyMobile copied to clipboard

update tab validation

Open DivadNojnarg opened this issue 5 years ago • 0 comments

validate_tabName <- function(tabName) {
  forbidden <- "(?!_)[[:punct:]]"
  wrong_selector <- grepl(forbidden, tabName, perl = TRUE)
  if (wrong_selector) {
    stop(
      paste(
        "Please do not use punctuation characters in tabNames.
        This might cause JavaScript issues."
      )
    )
  }
}

DivadNojnarg avatar Mar 13 '21 23:03 DivadNojnarg