Skip to content

Commit

Permalink
Merge pull request #18 from nviennot/master
Browse files Browse the repository at this point in the history
Fixed breakpoint location parsing issue
  • Loading branch information
nixme committed Oct 1, 2012
2 parents cacb767 + 9b1e731 commit debc6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pry-debugger/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ def new_breakpoint

file, line =
case place
when /(\d+)/ # Line number only
when /^(\d+)$/ # Line number only
line = $1
unless PryDebugger.check_file_context(target)
raise ArgumentError, 'Line number declaration valid only in a file context.'
end
[target.eval('__FILE__'), line]
when /(.+):(\d+)/ # File and line number
when /^(.+):(\d+)$/ # File and line number
[$1, $2]
else # Method or class name
self.args = [place]
Expand Down

0 comments on commit debc6fd

Please sign in to comment.