From: Tobias Brunner Date: Wed, 2 Aug 2017 12:32:32 +0000 (+0200) Subject: conf: Match more characters in _ and ** X-Git-Tag: 5.6.0rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00498d78a81f1fcd344b1eb13461f1ed4e00bf01;p=thirdparty%2Fstrongswan.git conf: Match more characters in _ and ** \w does not match e.g. / but \S does. --- diff --git a/conf/format-options.py b/conf/format-options.py index 9531378fa2..592bf67068 100755 --- a/conf/format-options.py +++ b/conf/format-options.py @@ -217,7 +217,7 @@ class TagReplacer: return re.compile(r''' (^|\s|(?P[(\[])) # prefix with optional opening bracket (?P''' + tag + r''') # start tag - (?P\w|\S.*?\S) # text + (?P\S|\S.*?\S) # text ''' + tag + r''' # end tag (?P([.,!:)\]]|\(\d+\))*) # punctuation (?=$|\s) # suffix (don't consume it so that subsequent tags can match)