Skip to content
Snippets Groups Projects
Commit cdf9ce38 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Fix compilation when the NEWS file contains special chars

parent 9944072d
No related branches found
No related tags found
1 merge request!1993Fix compilation when the NEWS file contains special chars
Pipeline #520750 passed with stage
in 7 minutes and 29 seconds
......@@ -309,7 +309,7 @@ def changelog() {
if (started && !line?.trim()) break
if (started) {
if (output != "") output += "\\n"
output += line.trim()
output += line.trim().replaceAll(/(@|'|"|\\/|\(|\)|=|\?)/, /\\$0/)
}
if (line.contains("---")) started = true
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment