Closed shuplenkov closed 3 years ago
To secure user regex we need to use re2 module instead of regex in ajv and ajv formats
Replaced RegExp with RE2 in Ajv Replaced RegExps in DataContract schema with compatible ones New IncompatibleRe2PatternError for incompatible patterns
Unit tests
pattern
For repository code-owners and collaborators only
Issue being fixed or feature implemented
To secure user regex we need to use re2 module instead of regex in ajv and ajv formats
What was done?
Replaced RegExp with RE2 in Ajv Replaced RegExps in DataContract schema with compatible ones New IncompatibleRe2PatternError for incompatible patterns
How Has This Been Tested?
Unit tests
Breaking Changes
pattern
keyword accept only RE2 compatible regular expressions https://github.com/google/re2/wiki/SyntaxChecklist:
For repository code-owners and collaborators only