diff --git a/build.gradle.kts b/build.gradle.kts
index 4049f91..616e9e3 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -16,7 +16,7 @@ allprojects {
apply(plugin = "maven-publish")
group = "io.javalin.community.openapi"
- version = "5.6.3-1"
+ version = "5.6.3-2"
repositories {
mavenCentral()
diff --git a/examples/javalin-maven-java/pom.xml b/examples/javalin-maven-java/pom.xml
index cbd293b..71049df 100644
--- a/examples/javalin-maven-java/pom.xml
+++ b/examples/javalin-maven-java/pom.xml
@@ -12,7 +12,7 @@
11
11
5.6.3
- 5.6.3-1
+ 5.6.3-2
diff --git a/javalin-plugins/javalin-swagger-plugin/src/main/kotlin/io/javalin/openapi/plugin/swagger/SwaggerHandler.kt b/javalin-plugins/javalin-swagger-plugin/src/main/kotlin/io/javalin/openapi/plugin/swagger/SwaggerHandler.kt
index 8c768a3..8a8e1f9 100644
--- a/javalin-plugins/javalin-swagger-plugin/src/main/kotlin/io/javalin/openapi/plugin/swagger/SwaggerHandler.kt
+++ b/javalin-plugins/javalin-swagger-plugin/src/main/kotlin/io/javalin/openapi/plugin/swagger/SwaggerHandler.kt
@@ -101,9 +101,9 @@ class SwaggerHandler(
return html
}
- private val multiplePathOperatorsRegex = Regex("/+")
-
- private fun String.removedDoubledPathOperators(): String =
- replace(multiplePathOperatorsRegex, "/")
+ private fun String.removedDoubledPathOperators(): String {
+ val multiplePathOperatorsRegex = Regex("/+")
+ return replace(multiplePathOperatorsRegex, "/")
+ }
}
\ No newline at end of file
diff --git a/javalin-plugins/javalin-swagger-plugin/src/test/kotlin/io/javalin/openapi/plugin/swagger/SwaggerPluginTest.kt b/javalin-plugins/javalin-swagger-plugin/src/test/kotlin/io/javalin/openapi/plugin/swagger/SwaggerPluginTest.kt
index e5ce725..406a301 100644
--- a/javalin-plugins/javalin-swagger-plugin/src/test/kotlin/io/javalin/openapi/plugin/swagger/SwaggerPluginTest.kt
+++ b/javalin-plugins/javalin-swagger-plugin/src/test/kotlin/io/javalin/openapi/plugin/swagger/SwaggerPluginTest.kt
@@ -70,8 +70,8 @@ internal class SwaggerPluginTest {
@Test
fun `should not fail if second swagger plugin is registered`(){
- val swaggerConfiguration = SwaggerConfiguration();
- val otherConfiguration = ExampleSwaggerPlugin();
+ val swaggerConfiguration = SwaggerConfiguration()
+ val otherConfiguration = ExampleSwaggerPlugin()
Javalin.create{
it.plugins.register(SwaggerPlugin(swaggerConfiguration))
it.plugins.register(otherConfiguration)
diff --git a/wiki b/wiki
index 856cddc..432da44 160000
--- a/wiki
+++ b/wiki
@@ -1 +1 @@
-Subproject commit 856cddca656ee5cf62ed7b18f628fb95674959b8
+Subproject commit 432da448cf053436c7f2c1e7a2d31f3ae66c9f3f