Skip to content

Commit f72b562

Browse files
committed
Fix typo in regex.
1 parent be6baf1 commit f72b562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippet_fmt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def run(self) -> bool:
129129
rf'((?P=indent)[ \t]+:.*\n)*' # Limitation: should be `(?P=body_indent)` rather than `[ \t]+`
130130
rf'\n*'
131131
rf')'
132-
rf'(?P<code>^((?P=indent)(?P<body_indent>[ \t]+).*)?\n(^((?P=indent)(?P=body_indent).*)?\n)+)',
132+
rf'(?P<code>^((?P=indent)(?P<body_indent>[ \t]+).*)?\n(^((?P=indent)(?P=body_indent).*)?\n)*)',
133133
re.MULTILINE,
134134
)
135135

0 commit comments

Comments
 (0)