diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-08-02 14:32:32 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-08-07 14:22:27 +0200 |
commit | 00498d78a81f1fcd344b1eb13461f1ed4e00bf01 (patch) | |
tree | 28e8e9a6c40f537f01949967d87f7979ea44aac2 | |
parent | 1a8226429ac2ca631c4080c14c065db82e537ce5 (diff) | |
download | strongswan-00498d78a81f1fcd344b1eb13461f1ed4e00bf01.tar.bz2 strongswan-00498d78a81f1fcd344b1eb13461f1ed4e00bf01.tar.xz |
conf: Match more characters in _ and **
\w does not match e.g. / but \S does.
-rwxr-xr-x | conf/format-options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/format-options.py b/conf/format-options.py index 9531378fa..592bf6706 100755 --- a/conf/format-options.py +++ b/conf/format-options.py @@ -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) |