Merge pull request #4706 from okriuchykhin/ok_SCI_7393

Remove underscore escaping for ZPL templates previews [SCI-7393]
This commit is contained in:
Alex Kriuchykhin 2022-12-12 11:00:37 +01:00 committed by GitHub
commit 67e4a7f658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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