diff --git a/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java b/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java
index b124e0e206..e1193f5c7b 100644
--- a/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java
+++ b/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java
@@ -252,7 +252,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
protected String msImg2HtmlImg(String input, String endpoint) {
// ![中心主题.png](/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) {
// -> ![中心主题.png](/resource/md/get/a0b19136_中心主题.png)
- String regex = "()";
+ String regex = "()";
Pattern pattern = Pattern.compile(regex);
if (StringUtils.isBlank(input)) {
return "";
@@ -321,7 +321,7 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
public List getImageFiles(String input) {
List files = new ArrayList<>();
- String regex = "(\\!\\[.*?\\]\\((.*)\\))";
+ String regex = "(\\!\\[.*?\\]\\((.*?)\\))";
Pattern pattern = Pattern.compile(regex);
if (StringUtils.isBlank(input)) {
return new ArrayList<>();