Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 578 Bytes

2022-10-14-excape-comments-in-product-comparison-templates.md

File metadata and controls

11 lines (11 loc) · 578 Bytes
title issue author author_email author_github
Escape Comments in Product Comparison Templates
NEXT-23812
d.popovic
dpopov00

Core

  • Changed src\Administration\Resources\app\administration\webpack.config.js comment removal to escape {#- -#} because it is necessary for correct creation of CSV Product Comparison Templates (because of this comments Twig ignores the trailing newline)
    • old: search: /{#[\s\S]*?#}/gm,
    • new: search: /^(?!{#-){#[\s\S]*?#}/gm (still remove comments, but skip if they are in this combination "{#-" )