lib/backtrace.rb in backtrace-0.3.0 vs lib/backtrace.rb in backtrace-0.4.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true # (The MIT License) # -# Copyright (c) 2018 Yegor Bugayenko +# Copyright (c) 2018-2023 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -22,10 +22,10 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # Backtrace as a string. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2018 Yegor Bugayenko +# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko # License:: MIT class Backtrace def initialize(exp, mine: '') @exp = exp @mine = (mine.is_a?(Regexp) ? mine : Regexp.new(Regexp.quote(mine)))