Skip to content

Commit

Permalink
fix: strip the leading r modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Dec 2, 2022
1 parent 0691a8e commit 3b00a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fix_future_annotations/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _add_future_annotations(content: str) -> str:
if in_doc:
code = line.split("#")[0].rstrip()
if (
code != doc_quote
code.lstrip("r") != doc_quote
and code.endswith(doc_quote)
and not _escaped(code[: -len(doc_quote)])
):
Expand Down

0 comments on commit 3b00a68

Please sign in to comment.