Skip to content

Commit

Permalink
Do not match any characters after the dot in an expression
Browse files Browse the repository at this point in the history
Fixes #460
  • Loading branch information
ono-max authored and ko1 committed Dec 28, 2021
1 parent fefa239 commit c6e3a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ def process_dap args
break false
end
} and (message = "Error: Not defined global variable: #{expr.inspect}")
when /\A[A-Z]/
unless result = search_const(b, expr)
when /(\A[A-Z]\w*)/
unless result = search_const(b, $1)
message = "Error: Not defined constants: #{expr.inspect}"
end
else
Expand Down

0 comments on commit c6e3a82

Please sign in to comment.