diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2022-02-17 10:10:15 -0500 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2022-02-17 10:36:02 -0500 |
commit | 1a9311a48a8b1c6ed23c065319736e91c949b26c (patch) | |
tree | 790f25f42fc79f89990c7b0dd2f5828ea7be9769 | |
parent | 1173c768b0524c2dcb0a13a18dcf5dc440bcbc4b (diff) | |
download | asciidoc-py3-1a9311a48a8b1c6ed23c065319736e91c949b26c.tar.gz |
Fix regex deprecation warnings
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r-- | asciidoc/asciidoc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asciidoc/asciidoc.py b/asciidoc/asciidoc.py index ef486fb..b158e44 100644 --- a/asciidoc/asciidoc.py +++ b/asciidoc/asciidoc.py @@ -1333,9 +1333,9 @@ class Document(object): attrs = self.attributes # Alias for readability. s = s.strip() mo = re.match(r'^(?P<name1>[^<>\s]+)' - '(\s+(?P<name2>[^<>\s]+))?' - '(\s+(?P<name3>[^<>\s]+))?' - '(\s+<(?P<email>\S+)>)?$', s) + r'(\s+(?P<name2>[^<>\s]+))?' + r'(\s+(?P<name3>[^<>\s]+))?' + r'(\s+<(?P<email>\S+)>)?$', s) if not mo: # Names that don't match the formal specification. if s: @@ -5499,7 +5499,7 @@ class Tables_OLD(AbstractBlocks): + r'(\d*|' + re.escape(b.fillchar) + r'*)' \ + r')+' \ + re.escape(b.fillchar) + r'+' \ - + '([\d\.]*)$' + + r'([\d\.]*)$' delimiters.append(b.delimiter) if not b.headrow: b.headrow = b.bodyrow |