-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed_regex_linter() fails when encountering "\\;" #1545
Labels
bug
an unexpected problem or unintended behavior
Comments
Traceback: Error:
! '\;' is an unrecognized escape in character string starting ""\;"
---
Backtrace:
▆
1. └─lintr::lint("strsplit(\"a;b\", split = \"\\\\;\")\n", lintr::fixed_regex_linter())
2. └─lintr:::get_lints(...)
3. ├─lintr:::flatten_lints(linter_fun(expr))
4. │ ├─base::structure(flatten_list(x, class = "lint"), class = "lints")
5. │ └─lintr:::flatten_list(x, class = "lint")
6. │ └─lintr (local) assign_item(x)
7. └─lintr (local) linter_fun(expr)
8. ├─base::encodeString(...)
9. └─lintr:::get_fixed_string(pattern_strings[is_static])
10. ├─base::paste0(...)
11. └─lintr:::get_token_replacement(token_content, token_type)
12. ├─base::eval(parse(text = paste0("\"", token_content, "\"")))
13. └─base::parse(text = paste0("\"", token_content, "\"")) |
IndrajeetPatil
added a commit
that referenced
this issue
Sep 21, 2022
MichaelChirico
pushed a commit
that referenced
this issue
Sep 21, 2022
* `fixed_regex_linter()` doesn't fail with `"\\;"` Closes #1545 * Update NEWS.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But the code itself is fine:
The text was updated successfully, but these errors were encountered: