dtext: fix frozen string error.
This commit is contained in:
@@ -271,7 +271,7 @@ class DText
|
||||
# @return [String] the DText output
|
||||
def self.strip_blocks(string, tag)
|
||||
n = 0
|
||||
stripped = ""
|
||||
stripped = "".dup
|
||||
string = string.dup
|
||||
|
||||
string.gsub!(/\s*\[#{tag}\](?!\])\s*/mi, "\n\n[#{tag}]\n\n")
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "shellwords"
|
||||
|
||||
# A wrapper for the exiftool command.
|
||||
|
||||
Reference in New Issue
Block a user