Skip to content
Snippets Groups Projects
Commit 4119e1c8 authored by vkovtun's avatar vkovtun
Browse files

BIS-1371: Fixed exporting issue when there are several colored elements by...

BIS-1371: Fixed exporting issue when there are several colored elements by replacing greedy regex with a lazy one.
parent d9534213
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ import java.util.regex.Pattern;
public class ExportPDFUtils
{
static final Pattern hslColorPattern = Pattern.compile("color:hsl\\(.*\\);");
static final Pattern hslBackgroundColorPattern = Pattern.compile("background-color:hsl\\(.*\\);");
static final Pattern hslColorPattern = Pattern.compile("color:hsl\\(.*?\\);");
static final Pattern hslBackgroundColorPattern = Pattern.compile("background-color:hsl\\(.*?\\);");
/*
* This algorithm to replace HSL to Hex colors has the benefit of having a complexity of O(n)
......
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