Description:
Enhance the method for calculating the maximum potential text length that could be generated from a regex pattern. The system should immediately throw an exception if the text exceeds 256 characters, a default limit which users can later adjust. The library should not attempt to calculate text size beyond this limit to optimize performance.
Acceptance Criteria:
- Default maximum text size set at 256 characters.
- Exception handling for text sizes exceeding the maximum limit.
- Configurable setting allowing users to change the default size.
- Integration tests to ensure that the size limit works as expected.
Description:
Enhance the method for calculating the maximum potential text length that could be generated from a regex pattern. The system should immediately throw an exception if the text exceeds 256 characters, a default limit which users can later adjust. The library should not attempt to calculate text size beyond this limit to optimize performance.
Acceptance Criteria: