Skip to content

Commit

Permalink
Update lib/build.gradle.kts
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim Zdobnikau <43750648+DelevoXDG@users.noreply.github.com>
  • Loading branch information
franciszekjob and DelevoXDG authored Sep 19, 2024
1 parent 29c0938 commit 747ecdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ tasks.register("generateGuides") {
.replace(Language.JAVA.getCodeSectionRegex(), "")

return content.replace(
if (language == Language.KOTLIN) Language.JAVA.getCodeBlockRegex() else Language.KOTLIN.getCodeBlockRegex(),
when (language) {
Language.KOTLIN -> Language.JAVA.getCodeBlockRegex()
Language.JAVA -> Language.KOTLIN.getCodeBlockRegex()
},
""
)
}
Expand Down

0 comments on commit 747ecdb

Please sign in to comment.