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 57934cd6f6..926c3dcbce 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 @@ -390,7 +390,7 @@ class SchemaExtractor( ) private fun getCallMatcher(ctxVarName: String): Regex { - return """${ctxVarName}.call\((?[^)]+),(?[^)]+)\(.*\)\)""".toRegex(RegexOption.IGNORE_CASE) + return """${ctxVarName}\.call\((?[^,]+),\s*(?[^,]+?)\s*\(""".toRegex(RegexOption.IGNORE_CASE) } private fun KotlinType.toClassDescriptor(): ClassDescriptor =