yayakm / RegexStringGenerator

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.
Apache License 2.0
4 stars 1 forks source link

Improve Text Length Calculation #18

Open yayakm opened 1 month ago

yayakm commented 1 month ago

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: