conf: Match more characters in _ and **

\w does not match e.g. / but \S does.
This commit is contained in:
Tobias Brunner
2017-08-07 14:22:27 +02:00
parent 1a8226429a
commit 00498d78a8
+1 -1
View File
@@ -217,7 +217,7 @@ class TagReplacer:
return re.compile(r'''
(^|\s|(?P<brack>[(\[])) # prefix with optional opening bracket
(?P<tag>''' + tag + r''') # start tag
(?P<text>\w|\S.*?\S) # text
(?P<text>\S|\S.*?\S) # text
''' + tag + r''' # end tag
(?P<punct>([.,!:)\]]|\(\d+\))*) # punctuation
(?=$|\s) # suffix (don't consume it so that subsequent tags can match)