special characters in prompts need to be escaped before being used in a regex. #98
I just changed my prompt to be a blue
getOption("prompt") #>  "\033[34m> \033[39m"
Which now gives the following output when you try to use reprex
reprex::reprex(input = "x <- 1\n") Error in grepl(regex, x) : invalid regular expression '^> ', reason 'Missing ']''
This is because
Does not escape the prompt for special regex characters before passing it to
Will have a PR to fix this shortly.
The text was updated successfully, but these errors were encountered: