Skip to content

Commit

Permalink
Update build number condition check in KotlinNotebookPluginUtils
Browse files Browse the repository at this point in the history
Changed the condition check in the fromString function. Now, it accepts build numbers with three or more parts.
  • Loading branch information
ermolenkodev committed Mar 6, 2024
1 parent f12853c commit 293ec54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public object KotlinNotebookPluginUtils {
public companion object {
public fun fromString(buildNumber: String): IdeBuildNumber? {
val parts = buildNumber.split(";")
return if (parts.size == 3) constructIdeBuildNumber(parts) else null
return if (parts.size >= 3) constructIdeBuildNumber(parts) else null
}

private fun constructIdeBuildNumber(parts: List<String>): IdeBuildNumber? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public object KotlinNotebookPluginUtils {
public companion object {
public fun fromString(buildNumber: String): IdeBuildNumber? {
val parts = buildNumber.split(";")
return if (parts.size == 3) constructIdeBuildNumber(parts) else null
return if (parts.size >= 3) constructIdeBuildNumber(parts) else null
}

private fun constructIdeBuildNumber(parts: List<String>): IdeBuildNumber? {
Expand Down

0 comments on commit 293ec54

Please sign in to comment.