File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ module RegexpExamples
1010 # Edge case:
1111 # permutations_of_strings [ [] ] #=> nil
1212 # (For example, ths occurs during /[^\d\D]/.examples #=> [])
13- def self . permutations_of_strings ( arrays_of_strings , max_results_limiter = MaxResultsLimiterByProduct . new )
13+ def self . permutations_of_strings ( arrays_of_strings ,
14+ max_results_limiter = MaxResultsLimiterByProduct . new )
1415 partial_result = max_results_limiter . limit_results ( arrays_of_strings . shift )
1516 return partial_result if arrays_of_strings . empty?
16- partial_result . product ( permutations_of_strings ( arrays_of_strings , max_results_limiter ) ) . map do |result |
17+ partial_result . product (
18+ permutations_of_strings ( arrays_of_strings , max_results_limiter )
19+ ) . map do |result |
1720 join_preserving_capture_groups ( result )
1821 end
1922 end
You can’t perform that action at this time.
0 commit comments