lib/byebug/commands/finish.rb in byebug-1.8.1 vs lib/byebug/commands/finish.rb in byebug-1.8.2
- old
+ new
@@ -4,10 +4,10 @@
class FinishCommand < Command
self.allow_in_post_mortem = false
self.need_context = true
def regexp
- /^\s*fin(?:ish)? (?:\s+(.*))?$/x
+ /^\s* fin(?:ish)? (?:\s+(\S+))? \s*$/x
end
def execute
max_frame = @state.context.stack_size - @state.frame_pos
if not @match[1]