lib/nib/debug.rb in nib-1.4.0 vs lib/nib/debug.rb in nib-1.4.1
- old
+ new
@@ -36,8 +36,8 @@
RUBY_DEBUG_PORT # target the env var we defined
\D* # expect non-numeric characters (':', ': ', '=', '="')
(?<port>\d+) # capture numeric value of the port
/x
- compose_file.match(regexp)&.send(:[], :port)
+ (compose_file.match(regexp) || {}).send(:[], :port)
end
end