Skip to content

Commit d402bf2

Browse files
committed
Removed the escape from the regex
1 parent 75b0615 commit d402bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator-core/src/main/java/io/dinject/webroutegen/openapi/MethodDocBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void build() {
4444
operation.setDeprecated(true);
4545
}
4646

47-
String path = methodReader.getFullPath().replaceAll("(:)([^\\/]+)", "{$2}");
47+
String path = methodReader.getFullPath().replaceAll("(:)([^/]+)", "{$2}");
4848
PathItem pathItem = ctx.pathItem(path);
4949

5050
switch (methodReader.getWebMethod()) {

0 commit comments

Comments
 (0)