When string enums contains regular expression meta characters such as ^ they are not properly escaped, which can cause canonicalization to produce incorrect results.
This fix may not be perfect since Python does not use ECMA 262 syntax for regular expressions as in JSON Schema.
When string enums contains regular expression meta characters such as
^
they are not properly escaped, which can cause canonicalization to produce incorrect results. This fix may not be perfect since Python does not use ECMA 262 syntax for regular expressions as in JSON Schema.