dtext: fix frozen string error.

This commit is contained in:
evazion
2021-12-16 00:56:46 -06:00
parent 163ba8e7da
commit a62ae69740
2 changed files with 3 additions and 1 deletions

View File

@@ -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")

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require "shellwords"
# A wrapper for the exiftool command.