JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.08k stars 623 forks source link

Plugin publication: fix the channel selector #444

Closed ForNeVeR closed 7 months ago

ForNeVeR commented 7 months ago

Before this patch, publisher was always using the channel corresponding to the first number in the plugin version for release builds. This is because by default, Kotlin's substringAfter will return the whole input string if it's unable to find the needle.

So, for example, "1.2.3".substringAfter('-').substringBefore('.') would yield "1".

hsz commented 7 months ago

Good catch, thank you for fixing it!