Skip to content

Commit 10888b0

Browse files
authored
Update CollectScreenShots.kt
Make top comment finding less strict. Currently some comments start with /* instead of /**, which leads to import and package lines being included in README.md files.
1 parent 6024e62 commit 10888b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() {
132132
val codeLines = ktFile.readLines()
133133
val main = codeLines.indexOfFirst { it.startsWith("fun main") }
134134
val head = codeLines.take(main)
135-
val start = head.indexOfLast { it.startsWith("/**") }
135+
val start = head.indexOfLast { it.startsWith("/*") }
136136
val end = head.indexOfLast { it.endsWith("*/") }
137137

138138
if ((start < end) && (end < main)) {

0 commit comments

Comments
 (0)