@@ -70,17 +70,17 @@ Using any of the following will raise a RegexpExamples::IllegalSyntax exception:
7070When generating examples, the gem uses 2 configurable values to limit how many examples are listed:
7171
7272* ` max_repeater_variance ` (default = ` 2 ` ) restricts how many examples to return for each repeater. For example:
73- * . \* is equivalent to .{0,2}
74- * .+ is equivalent to .{1,3}
75- * .{2,} is equivalent to .{2,4}
76- * .{,3} is equivalent to .{0,2}
77- * .{3,8} is equivalent to .{3,5}
73+ * ` .* ` is equivalent to ` .{0,2} `
74+ * ` .+ ` is equivalent to ` .{1,3} `
75+ * ` .{2,} ` is equivalent to ` .{2,4} `
76+ * ` .{,3} ` is equivalent to ` .{0,2} `
77+ * ` .{3,8} ` is equivalent to ` .{3,5} `
7878
7979* ` max_group_results ` (default = ` 5 ` ) restricts how many characters to return for each "set". For example:
80- * \d = [ "0", "1", "2", "3", "4" ]
81- * \w = [ "a", "b", "c", "d", "e" ]
82- * [ h-s] = [ "h", "i", "j", "k", "l" ]
83- * (1|2|3|4|5|6|7|8) = [ "1", "2", "3", "4", "5" ]
80+ * ` \d ` is equivalent to ` [01234] `
81+ * ` \w ` is equivalent to ` [abcde] `
82+ * ` [h-s] ` is equivalent to ` [hijkl] `
83+ * ` (1|2|3|4|5|6|7|8) ` is equivalent to ` [12345] `
8484
8585To use an alternative value, simply pass the configuration option as follows:
8686
0 commit comments