From 166b93cb4f895555af52f04a20cdebd9daea6035 Mon Sep 17 00:00:00 2001 From: Andrei Stepanov Date: Wed, 20 Mar 2024 15:41:43 +0100 Subject: [PATCH] OSCI-6545 Signed-off-by: Andrei Stepanov --- src/validation_broker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validation_broker.ts b/src/validation_broker.ts index 7cf2426..27d0530 100644 --- a/src/validation_broker.ts +++ b/src/validation_broker.ts @@ -1,7 +1,7 @@ /* * This file is part of kaijs - * Copyright (c) 2021, 2022 Andrei Stepanov + * Copyright (c) 2021, 2022, 2024 Andrei Stepanov * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -164,7 +164,7 @@ const schema_brew_build_complete = Joi.object({ * ^(supp-)?rhel-[89]\.\d+\.\d+(-alpha)?(-beta)?(-z)?(-llvm-toolset|-go-toolset|-rust-toolset|.+-stack)?-gate$ */ const schema_brew_build_tag_is_gate_tag_brew_build = Joi.string().pattern( - /^(supp-)?rhel-[89]\.\d+\.\d+(-alpha)?(-beta)?(-z)?(-llvm-toolset|-go-toolset|-rust-toolset|.+-stack)?-gate$/, + /^(supp-)?rhel-([89]|10|11|12)\.\d+\.\d+(-alpha)?(-beta)?(-z)?(-llvm-toolset|-go-toolset|-rust-toolset|.+-stack)?-gate$/, ); /** @@ -172,7 +172,7 @@ const schema_brew_build_tag_is_gate_tag_brew_build = Joi.string().pattern( */ const schema_brew_build_tag_is_gate_tag_redhat_module_build = Joi.string().pattern( - /^(advanced-virt-[\w\.]+-)?(rhel-[89]\.\d+\.\d+(-alpha)?(-beta)?(-z)?-modules-gate)$/, + /^(advanced-virt-[\w\.]+-)?(rhel-([89]|10|11|12)\.\d+\.\d+(-alpha)?(-beta)?(-z)?-modules-gate)$/, ); export const schemaError = Joi.string().error(