From a62ae69740dfa132bbbbe059d1d83a58cc17b4ba Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 16 Dec 2021 00:56:46 -0600 Subject: [PATCH] dtext: fix frozen string error. --- app/logical/d_text.rb | 2 +- app/logical/exif_tool.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index 664ab29ba..e59509c38 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -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") diff --git a/app/logical/exif_tool.rb b/app/logical/exif_tool.rb index 94f0e6592..5b7907fbc 100644 --- a/app/logical/exif_tool.rb +++ b/app/logical/exif_tool.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "shellwords" # A wrapper for the exiftool command.