The goal of this PR is to filter Form Constraint options to extract.
Some of these options are values and are not meant to be extracted.
I assumed that only the option ending with the string message should be extracted because this pattern seems pretty correct for all predefined Constraints, plus it keeps extracting options of custom constraints ending with 'message'.
Description
The goal of this PR is to filter Form Constraint options to extract. Some of these options are values and are not meant to be extracted.
I assumed that only the option ending with the string
message
should be extracted because this pattern seems pretty correct for all predefined Constraints, plus it keeps extracting options of custom constraints ending with 'message'.Example
Only those three keys should be extracted :
Currently the number 5, the number 50 and the pattern string are extracted too.
Please tell me if the way I filter those options need to be improved.
Todos