bugfix: redaction regEx
This commit is contained in:
parent
fbc76e969f
commit
b1a13911c2
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ txt = Path(args.file).read_text()
|
|||
|
||||
# redaction syntax
|
||||
import re
|
||||
inlinepat = re.compile(r"\(\(\((([^>]*?):::)?(.*?)\)\)\)", re.MULTILINE|re.DOTALL)
|
||||
tokenpat = re.compile(r"\[redact(:::(.*?))?\](.*?)\[\/redact\]", re.MULTILINE|re.DOTALL)
|
||||
inlinepat = re.compile(r"\(\(\((?:(.+?):::)?(.+?)\)\)\)", re.MULTILINE|re.DOTALL)
|
||||
tokenpat = re.compile(r"\[redact(:::(.+?))?\](.+?)\[\/redact\]", re.MULTILINE|re.DOTALL)
|
||||
|
||||
# match handling
|
||||
def subredact(match):
|
||||
|
|
Loading…
Reference in a new issue