[K/N][perf] Update pattern for release branches

This commit is contained in:
Elena Lepilkina
2022-01-10 14:31:38 +03:00
committed by Space
parent ac8553cfd4
commit 745c5e2b05
@@ -215,7 +215,7 @@ fun main(args: Array<String>) {
val branches: Array<String> = JSON.parse(response)
// Add release branches to selector.
branches.filter { it != "master" }.forEach {
if ("v(\\d|\\.)+(-M\\d)?-fixes".toRegex().matches(it)) {
if ("^v?(\\d|\\.)+(-M\\d)?(-fixes)?$".toRegex().matches(it)) {
val option = Option(it, it)
js("$('#inputGroupBranch')").append(js("$(option)"))
}