summaryrefslogtreecommitdiff
path: root/ext/erb/erb.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-08-19 13:19:03 -0700
committerJeremy Evans <code@jeremyevans.net>2022-11-24 15:18:44 -0800
commit04a92a6764bf678919cf4b68a27496a39d6b886a (patch)
tree19a5548772dd56562e44f29e99f9e445f2a53eff /ext/erb/erb.c
parentd15de2f0d73d452d1db582ab9634c3edcf77bb41 (diff)
Raise TypeError for endless non-numeric range include?
Beginless ranges previously raised TypeError for this case, except for string ranges, which had unexpected behavior: ('a'..'z').include?('ww') # false (..'z').include?('ww') # previously true, now TypeError Use of include? with endless ranges could previously result in an infinite loop. This splits off a range_string_cover_internal function from range_include_internal. Fixes [Bug #18580]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6261
Diffstat (limited to 'ext/erb/erb.c')
0 files changed, 0 insertions, 0 deletions