Skip to content

Commit

Permalink
OSCI-6545
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Stepanov <[email protected]>
  • Loading branch information
Andrei-Stepanov committed Mar 20, 2024
1 parent f9a8386 commit 166b93c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/validation_broker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is part of kaijs
* Copyright (c) 2021, 2022 Andrei Stepanov <[email protected]>
* Copyright (c) 2021, 2022, 2024 Andrei Stepanov <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -164,15 +164,15 @@ 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$/,
);

/**
* ^(advanced-virt-[\w\.]+-)?(rhel-[89]\.\d+\.\d+(-alpha)?(-beta)?(-z)?-modules-gate)$
*/
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(
Expand Down

0 comments on commit 166b93c

Please sign in to comment.