File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/mkdocs_include_markdown_plugin Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " mkdocs-include-markdown-plugin"
3- version = " 5.0 .0"
3+ version = " 5.1 .0"
44description = " Mkdocs Markdown includer plugin."
55readme = " README.md"
66license = " Apache-2.0"
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ class DirectiveBoolArgument(TypedDict): # noqa: D101
3232 )
3333
3434
35+ RE_ESCAPED_PUNCTUATION = re .escape (string .punctuation )
36+
3537DOUBLE_QUOTED_STR_RE = r'([^"]|(?<=\\)["])+'
3638SINGLE_QUOTED_STR_RE = r"([^']|(?<=\\)['])+"
3739
@@ -62,7 +64,7 @@ class DirectiveBoolArgument(TypedDict): # noqa: D101
6264
6365def arg (arg : str ) -> re .Pattern [str ]:
6466 """Return a compiled regexp to match a boolean argument."""
65- return re .compile (rf'{ arg } =([- \w]*)' )
67+ return re .compile (rf'{ arg } =([{ RE_ESCAPED_PUNCTUATION } \w]*)' )
6668
6769
6870def str_arg (arg : str ) -> re .Pattern [str ]:
You can’t perform that action at this time.
0 commit comments