Skip to content

Commit fe52857

Browse files
committed
Use cg_missing in str_match too.
1 parent 5b11cc1 commit fe52857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/match.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
str_match <- function(string, pattern) {
2929
switch(type(pattern),
3030
regex = stri_match_first_regex(string, pattern,
31-
opts_regex = attr(pattern, "options")),
31+
opts_regex = attr(pattern, "options"), cg_missing = ""),
3232
stop("Can only match regular expressions", call. = FALSE)
3333
)
3434
}

0 commit comments

Comments
 (0)