Masking Prefix and Suffix should not be escaped
bolu61 opened this issue · comments
The following escapes the prefix and suffix.
Drain3/drain3/template_miner.py
Lines 306 to 307 in 76d12de
However, they are used in str.replace
, which only does simple string replacement.
Drain3/drain3/template_miner.py
Lines 312 to 316 in 76d12de
Thus, if the prefix and suffix contained escaped characters, e.g. {{
and }}
would become \\{\\{
and \\}\\}
, the replacement would fail, and the constructed pattern will not match any parameteres.
I missed the line right after that also escapes the template...