From a6e8880a1259a491fc24a5b29686c47fed359466 Mon Sep 17 00:00:00 2001 From: bbuchsbaum Date: Sun, 18 May 2025 16:29:44 -0400 Subject: [PATCH] Restrict optional parsers to single match --- R/match_helpers.R | 11 +++++++---- man/optional_key.Rd | 2 +- tests/testthat/test_parse.R | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/R/match_helpers.R b/R/match_helpers.R index 7dd82a6..40b7667 100644 --- a/R/match_helpers.R +++ b/R/match_helpers.R @@ -21,7 +21,7 @@ alt_extractor <- function(x) { #' #' @param label The label of the key to parse. #' @param regex A regex pattern that the key's value should match. -#' @return A parser that matches zero or more occurrences of `_