From c467a3fc5d1b8fd83da539781ed14197e7f1f092 Mon Sep 17 00:00:00 2001 From: Elizabeth Worstell Date: Wed, 8 Nov 2023 10:27:44 -0800 Subject: [PATCH] fix verb call matcher in kotlin schema extractor --- .../kotlin/xyz/block/ftl/schemaextractor/ExtractSchemaRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-runtime/ftl-runtime/src/main/kotlin/xyz/block/ftl/schemaextractor/ExtractSchemaRule.kt b/kotlin-runtime/ftl-runtime/src/main/kotlin/xyz/block/ftl/schemaextractor/ExtractSchemaRule.kt index fdfecbb3d4..de3be23e53 100644 --- a/kotlin-runtime/ftl-runtime/src/main/kotlin/xyz/block/ftl/schemaextractor/ExtractSchemaRule.kt +++ b/kotlin-runtime/ftl-runtime/src/main/kotlin/xyz/block/ftl/schemaextractor/ExtractSchemaRule.kt @@ -314,7 +314,7 @@ class SchemaExtractor(val bindingContext: BindingContext, annotation: KtAnnotati companion object { private fun getCallMatcher(ctxVarName: String): Regex { - return """${ctxVarName}.call\((?[^)]+),(?[^)]+)\(\)\)""".toRegex(RegexOption.IGNORE_CASE) + return """${ctxVarName}.call\((?[^)]+),(?[^)]+)\(.*\)\)""".toRegex(RegexOption.IGNORE_CASE) } private fun KotlinType.getTypeArguments(): List =