Skip to content

Commit e6b1ba4

Browse files
committed
Plugins: Fix python 3.14 compatibility
This commit ensures global flags to be located at very first character of patterns, as it is what python 3.14 enforces.
1 parent 5c647b7 commit e6b1ba4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/headings/level.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ def _set_level(self, edit, calc_level, select):
7878
view = self.view
7979
match_heading_hashes = view.settings().get("mde.match_heading_hashes")
8080
pattern = re.compile(
81-
r"""
82-
(?x)
81+
r"""(?x)
8382
^([ \t>]*) # block quotes
8483
(?:
8584
(\#+) # leading hashes

0 commit comments

Comments
 (0)