Skip to content

bad escape \s in Drain.py #84

@moesjo

Description

@moesjo

When running the demo script for drain to following error occures:
re.error: bad escape \s at position 2
Changing line 339 in Drain.py from
template_regex = re.sub(r'\\ +', r'\s+', template_regex)
to
template_regex = re.sub(r'\\ +', r'\\s+', template_regex)
fixed the problem for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions