优化
This commit is contained in:
1 parent
1590aef627
commit
eff2deaea0
2 files changed
+2
-3
No files matched your search
@@ -26,6 +26,7 @@ public class Resources implements Serializable {
|
||||
private static final long serialVersionUID = 2450876953383871451L;
|
||||
private static final String IMAGE_PREFIX = "image_";
|
||||
private static final String ITEM_PREFIX = "item_";
|
||||
private static final Pattern dataUriRegex = Pattern.compile("data:([\\w/\\-\\.]+);base64,(.*)");
|
||||
private int lastId = 1;
|
||||
|
||||
private Map<String, Resource> resources = new HashMap<>();
|
||||
@@ -320,7 +321,6 @@ public class Resources implements Serializable {
|
||||
}
|
||||
href = StringUtil.substringBefore(href, Constants.FRAGMENT_SEPARATOR_CHAR);
|
||||
|
||||
Pattern dataUriRegex = Pattern.compile("data:([\\w/\\-\\.]+);base64,(.*)");
|
||||
Matcher dataUriMatcher = dataUriRegex.matcher(href);
|
||||
if (dataUriMatcher.find()) {
|
||||
String dataUriMediaTypeString = dataUriMatcher.group(1);
|
||||
|
||||
Reference in new issue
Block a user