Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of max word validation #379

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

poyuki
Copy link
Contributor

@poyuki poyuki commented Oct 19, 2023

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 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

@poyuki poyuki changed the title Breaking change of max word validation Refactoring of max word validation Oct 19, 2023
@poyuki poyuki merged commit e8796fa into develop Oct 19, 2023
@poyuki poyuki deleted the feat/tr-4540/max-words-validation branch October 19, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants