regexp-examples icon indicating copy to clipboard operation
regexp-examples copied to clipboard

Predictable behaviour of `max_examples_limit` option

Open tom-lord opened this issue 7 years ago • 0 comments

Ideally, Regexp#examples should always return up to max_results_limit.

Currently, it usually "aborts" before this limit is reached. (I.e. the exact number of examples generated can be hard to predict, for complex patterns.)

An enhancement would be to modify the algorithm such that results are always generated up to max_results_limit if possible.

tom-lord avatar Feb 05 '18 10:02 tom-lord