We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30e89c3 commit d8da26cCopy full SHA for d8da26c
marker/jvm-marker/src/main/kotlin/spp/jetbrains/marker/jvm/detect/endpoint/VertxEndpoint.kt
@@ -92,7 +92,9 @@ class VertxEndpoint : JVMEndpointDetector.JVMEndpointNameDetector {
92
val importRegex = Regex("""import io\.vertx""")
93
importRegex.find(artifact.containingFile.text) ?: return
94
95
- val regex = Regex("""router\.([a-zA-Z]+)\("([^"]+)"\)\.handler\s?[({]\s?(?:this::)?([a-zA-Z]+).+""")
+ val regex = Regex(
96
+ """router\.([a-zA-Z]+)\("([^"]+)"\)\.handler\s?[({]\s?(?:this::)?(?:.+\s?->\s?)?([a-zA-Z]+).+"""
97
+ )
98
val match = regex.matchEntire(artifact.text) ?: return
99
val httpMethod = match.groupValues[1].uppercase()
100
val endpointName = match.groupValues[2]
0 commit comments