From 925d7e5c4546bc7e3887ca2f38648a8083bd9ac7 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 12 Dec 2022 10:28:35 +0100 Subject: [PATCH] Remove underscore escaping for ZPL templates previews [SCI-7393] --- app/services/label_templates_preview_service.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/services/label_templates_preview_service.rb b/app/services/label_templates_preview_service.rb index f253eff78..c2f09f6a9 100644 --- a/app/services/label_templates_preview_service.rb +++ b/app/services/label_templates_preview_service.rb @@ -17,7 +17,7 @@ class LabelTemplatesPreviewService invocation_type: 'RequestResponse', log_type: 'Tail', payload: - "{ \"content\": #{sanitize_zpl_code(@params[:zpl]).to_json},"\ + "{ \"content\": #{@params[:zpl].to_json},"\ "\"width\": #{@params[:width]},"\ "\"height\": #{@params[:height]},"\ "\"density\": #{@params[:density]} "\ @@ -35,10 +35,4 @@ class LabelTemplatesPreviewService end end end - - private - - def sanitize_zpl_code(zpl_code) - zpl_code.gsub('_', '_5F') - end end