From 745c5e2b05e0f53d7272a17b8198e77c6d2b2c9c Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Mon, 10 Jan 2022 14:31:38 +0300 Subject: [PATCH] [K/N][perf] Update pattern for release branches --- .../tools/performance-server/ui/src/main/kotlin/main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/tools/performance-server/ui/src/main/kotlin/main.kt b/kotlin-native/tools/performance-server/ui/src/main/kotlin/main.kt index 730516dd892..47cfc099d14 100644 --- a/kotlin-native/tools/performance-server/ui/src/main/kotlin/main.kt +++ b/kotlin-native/tools/performance-server/ui/src/main/kotlin/main.kt @@ -215,7 +215,7 @@ fun main(args: Array) { val branches: Array = 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)")) }