fix: 同步缺陷内存溢出
This commit is contained in:
parent
3e8cf6c9bc
commit
1770bd7a8e
|
@ -252,7 +252,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
|
||||
protected String msImg2HtmlImg(String input, String endpoint) {
|
||||
// ![中心主题.png](/resource/md/get/a0b19136_中心主题.png) -> <img src="xxx/resource/md/get/a0b19136_中心主题.png"/>
|
||||
String regex = "(\\!\\[.*?\\]\\((.*)\\))";
|
||||
String regex = "(\\!\\[.*?\\]\\((.*?)\\))";
|
||||
Pattern pattern = Pattern.compile(regex);
|
||||
if (StringUtils.isBlank(input)) {
|
||||
return "";
|
||||
|
@ -272,7 +272,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
}
|
||||
|
||||
protected String removeImage(String input) {
|
||||
String regex = "(\\!\\[.*?\\]\\((.*)\\))";
|
||||
String regex = "(\\!\\[.*?\\]\\((.*?)\\))";
|
||||
if (StringUtils.isBlank(input)) {
|
||||
return "";
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
|
||||
protected String getImages(String input) {
|
||||
String result = "";
|
||||
String regex = "(\\!\\[.*?\\]\\((.*)\\))";
|
||||
String regex = "(\\!\\[.*?\\]\\((.*?)\\))";
|
||||
if (StringUtils.isBlank(input)) {
|
||||
return result;
|
||||
}
|
||||
|
@ -299,7 +299,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
|
||||
protected String htmlImg2MsImg(String input) {
|
||||
// <img src="xxx/resource/md/get/a0b19136_中心主题.png"/> -> ![中心主题.png](/resource/md/get/a0b19136_中心主题.png)
|
||||
String regex = "(<img\\s*src=\\\"(.*)\\\".*?>)";
|
||||
String regex = "(<img\\s*src=\\\"(.*?)\\\".*?>)";
|
||||
Pattern pattern = Pattern.compile(regex);
|
||||
if (StringUtils.isBlank(input)) {
|
||||
return "";
|
||||
|
@ -321,7 +321,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
|
||||
public List<File> getImageFiles(String input) {
|
||||
List<File> files = new ArrayList<>();
|
||||
String regex = "(\\!\\[.*?\\]\\((.*)\\))";
|
||||
String regex = "(\\!\\[.*?\\]\\((.*?)\\))";
|
||||
Pattern pattern = Pattern.compile(regex);
|
||||
if (StringUtils.isBlank(input)) {
|
||||
return new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue