A Java library designed to generate random String that matches specified regular expressions. This tool is invaluable for developers and testers who require dynamically generated data that adheres to specific patterns, such as creating unique IDs, keys under constraints.
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: