You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.
I think fixing this may require us to actually parse the pattern rather than just doing local replacements, and it certainly indicates that we need to test against a much wider range of regular expressions! (i.e. write a better strategy, and contribute a larger set of patterns upstream)
The text was updated successfully, but these errors were encountered:
One possible partial workaround, for at least \w and similar, is to use the Python re engine in bytes mode which doesnt support Unicode. That would not help if the regex also needs Unicode support, but often that wont be needed, as JS regexp historically hasnt been used for unicode because it was poorly supported. The user could turn this on explicitly to ensure they are informed about the side effects.
[\w0-9]
gets translated to[[a-zA-Z]0-9]
, which is invalid. See python-jsonschema/jsonschema#612.I think fixing this may require us to actually parse the pattern rather than just doing local replacements, and it certainly indicates that we need to test against a much wider range of regular expressions! (i.e. write a better strategy, and contribute a larger set of patterns upstream)
The text was updated successfully, but these errors were encountered: