We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6baf1 commit f72b562Copy full SHA for f72b562
snippet_fmt/__init__.py
@@ -129,7 +129,7 @@ def run(self) -> bool:
129
rf'((?P=indent)[ \t]+:.*\n)*' # Limitation: should be `(?P=body_indent)` rather than `[ \t]+`
130
rf'\n*'
131
rf')'
132
- rf'(?P<code>^((?P=indent)(?P<body_indent>[ \t]+).*)?\n(^((?P=indent)(?P=body_indent).*)?\n)+)',
+ rf'(?P<code>^((?P=indent)(?P<body_indent>[ \t]+).*)?\n(^((?P=indent)(?P=body_indent).*)?\n)*)',
133
re.MULTILINE,
134
)
135
0 commit comments