summaryrefslogtreecommitdiffstats
path: root/dir_attach
diff options
context:
space:
mode:
Diffstat (limited to 'dir_attach')
-rw-r--r--dir_attach/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir_attach/__init__.py b/dir_attach/__init__.py
index cf0510f..c19f6dd 100644
--- a/dir_attach/__init__.py
+++ b/dir_attach/__init__.py
@@ -68,7 +68,7 @@ def expand_dir_attach(content, dirname):
# a whole content.replace to avoid to replace inside of paragraphs, etc.
regexes = (
(r"^(.. \w+::) {dir_attach}(.*)$", fr"\1 {dest}\2"),
- (r"^(\s+:\w+:) {dir_attach}(.*)$", fr"\1 {dest}\2"),
+ (r"^( :\w+:) {dir_attach}(.*)$", fr"\1 {dest}\2"),
)
for match, replace in regexes: