Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.