Skip to content

Commit c6e3a82

Browse files
ono-maxko1
authored andcommitted
Do not match any characters after the dot in an expression
Fixes #460
1 parent fefa239 commit c6e3a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/debug/server_dap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ def process_dap args
745745
break false
746746
end
747747
} and (message = "Error: Not defined global variable: #{expr.inspect}")
748-
when /\A[A-Z]/
749-
unless result = search_const(b, expr)
748+
when /(\A[A-Z]\w*)/
749+
unless result = search_const(b, $1)
750750
message = "Error: Not defined constants: #{expr.inspect}"
751751
end
752752
else

0 commit comments

Comments
 (0)