diff --git a/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt b/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt index 4b82b4a8..d23059fd 100644 --- a/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt +++ b/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt @@ -132,7 +132,7 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() { val codeLines = ktFile.readLines() val main = codeLines.indexOfFirst { it.startsWith("fun main") } val head = codeLines.take(main) - val start = head.indexOfLast { it.startsWith("/**") } + val start = head.indexOfLast { it.startsWith("/*") } val end = head.indexOfLast { it.endsWith("*/") } if ((start < end) && (end < main)) {