Skip to content

Commit 0e62607

Browse files
committed
Allow underscores in name regex
1 parent 5f97dfa commit 0e62607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scaffold_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ getPackage <- function() {
5454
}
5555

5656
validName <- function(name) {
57-
grepl("^[[:alpha:]]+[[:alnum:]]*$", name)
57+
grepl("^[[:alpha:]_][[:alnum:]_]*$", name)
5858
}
5959

6060
# Constraining names prevents the user from encountering obscure CSS problems

0 commit comments

Comments
 (0)