Skip to content

Commit

Permalink
in new ruby 3.4 they finally change backtick to single quote, so adap…
Browse files Browse the repository at this point in the history
…t code to work with both
  • Loading branch information
jreidinger committed Dec 20, 2024
1 parent b7bd23a commit bfcf818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ruby/yast/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Yast

res = Builtins.sformat(*safe_args)
res.gsub!(/%/, "%%") # reescape all %
matches = caller(caller_frame + 1, 1).first.match(/(.+):(\d+):in `([^']+)'/)
matches = caller(caller_frame + 1, 1).first.match(/(.+):(\d+):in [`']([^']+)'/)
y2_logger(level, "Ruby", matches[1], matches[2].to_i, matches[3], res)

return unless backtrace
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/yast/yast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AbortException < RuntimeError
end

# @private used to extract place from backtrace
BACKTRACE_REGEXP = /^(.*):(\d+):in `.*'$/
BACKTRACE_REGEXP = /^(.*):(\d+):in [`'].*'$/

# shortcut to construct new Yast term
# @see Yast::Term
Expand Down

0 comments on commit bfcf818

Please sign in to comment.