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:
parent
8e99eddf00
commit
ce920efd66
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue