Skip to content

Commit 108acab

Browse files
author
孤峰
committed
修复路径参数解析不正确的问题
1 parent b55321d commit 108acab

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
.idea/
2-
out/
3-
*.zip
1+
.idea
2+
out
3+
*.zip
4+
.gradle

.idea/misc.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/site/forgus/plugins/apigenerator/ApiGenerateAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ private String getPathFromAnnotation(PsiAnnotation annotation) {
542542
if(StringUtils.isEmpty(text)) {
543543
return "";
544544
}
545-
text = text.replace("\"","").replace("{","").replace("}","");
545+
text = text.replace("{\"","").replace("\"}","").replace("\"","");
546546
if(text.contains(",")) {
547547
return appendSlash(text.split(",")[0]);
548548
}

0 commit comments

Comments
 (0)