oat-sa / qti-sdk

A QTI (Question & Test Interoperability) Software Development Kit for PHP
http://www.taotesting.com
GNU General Public License v2.0
82 stars 32 forks source link

Refactoring of max word validation #379

Closed poyuki closed 1 year ago

poyuki commented 1 year ago

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