Skip to content

Commit

Permalink
Make MatchLength#to_re return a Regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynetics committed Jan 19, 2023
1 parent 922ce35 commit 25ab3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/regexp_parser/expression/methods/match_length.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def inspect
end

def to_re
"(?:#{reify.call}){#{min_rep},#{max_rep unless max_rep == Float::INFINITY}}"
/(?:#{reify.call}){#{min_rep},#{max_rep unless max_rep == Float::INFINITY}}/
end

private
Expand Down

0 comments on commit 25ab3be

Please sign in to comment.