Remove underscore escaping for ZPL templates previews [SCI-7393]

This commit is contained in:
Oleksii Kriuchykhin 2022-12-12 10:28:35 +01:00
parent c2e8abb4a4
commit 925d7e5c45

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