1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

keep 1.8.7 regex engine happy

This commit is contained in:
John Mair 2012-02-27 01:15:07 +13:00
parent 8e99eddf00
commit ce920efd66

View file

@ -303,7 +303,7 @@ class Pry
# Note that if we find the '| do' or '| {' we delete this and the
# elements following it from `arg_string`.
def pass_block(arg_string)
block_index = arg_string.rindex /\| *(?:do|{)/
block_index = arg_string.rindex /\| *(?:do|\{)/
return if !block_index