Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Regexp#random_example !!! This is effectively just a (MUCH) more efficient way of doing: /complicated .{20} regex/.examples(max_group_results: 9999999999).sample(1) Instead, you can use much more optimised code for this method via: /complicated .{20} regex/.random_example The key differrence being that Regexp#random_example does not store any more than 1 result in memory, at any time, making its performance scale linearly rather than exponentially.
- Loading branch information