You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ Extends the `Regexp` class with the methods: `Regexp#examples` and `Regexp#rando
12
12
13
13
\* If the regex has an infinite number of possible strings that match it, such as `/a*b+c{2,}/`,
14
14
or a huge number of possible matches, such as `/.\w/`, then only a subset of these will be listed.
15
-
16
15
For more detail on this, see [configuration options](#configuration-options).
17
16
18
17
If you'd like to understand how/why this gem works, please check out my [blog post](https://tom-lord.github.io/Reverse-Engineering-Regular-Expressions/) about it.
@@ -149,7 +148,15 @@ When generating examples, the gem uses 3 configurable values to limit how many e
149
148
150
149
`Rexexp#examples` makes use of *all* these options; `Rexexp#random_example` only uses `max_repeater_variance`, since the other options are redundant.
151
150
152
-
To use an alternative value, simply pass the configuration option as follows:
151
+
To use an alternative value, you can either define a different default value:
0 commit comments