Skip to content
Snippets Groups Projects
Commit 78066a15 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Keep original pattern as attribute

parent 7c4027be
Branches
Tags
No related merge requests found
......@@ -126,6 +126,7 @@ class Pattern(Constraint):
"""Initialize the class instance."""
super().__init__(error_tag, error_message if error_message else
"pattern '{}'".format(pattern))
self.pattern = pattern
self.invert_match = invert_match
try:
self.regex = re.compile(XMLToPython(pattern))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment