With this changes in case if we found in provided with interaction pattern corresponding to Authoring pattern
we ignore pattern matching extract min and max restrictions split string by pattern /[\s.,:;?!&#%\/*+=]+/ and count entries.
In case if pattern not corresponding to Authoring pattern system works as before and rely on provided pattern
How to test
install branch
launch delivery with extended text interaction with words restriction
words count in content like !word anotherWord word.with.dots! should be counted more accurate as 5 entries
TR-4540
Summary
This PR aim to refactor max words validation.
Development impact
With this changes in case if we found in provided with interaction pattern corresponding to Authoring pattern we ignore pattern matching extract min and max restrictions split string by pattern
/[\s.,:;?!&#%\/*+=]+/
and count entries. In case if pattern not corresponding to Authoring pattern system works as before and rely on provided patternHow to test
!word anotherWord word.with.dots!
should be counted more accurate as 5 entries