Skip to content

Commit

Permalink
fix verb call matcher in kotlin schema extractor (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell authored Nov 8, 2023
1 parent 1e23d32 commit 714a615
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class SchemaExtractor(val bindingContext: BindingContext, annotation: KtAnnotati

companion object {
private fun getCallMatcher(ctxVarName: String): Regex {
return """${ctxVarName}.call\((?<fn>[^)]+),(?<req>[^)]+)\(\)\)""".toRegex(RegexOption.IGNORE_CASE)
return """${ctxVarName}.call\((?<fn>[^)]+),(?<req>[^)]+)\(.*\)\)""".toRegex(RegexOption.IGNORE_CASE)
}

private fun KotlinType.getTypeArguments(): List<TypeProjection> =
Expand Down

0 comments on commit 714a615

Please sign in to comment.