feat: add block to ARB rate when trying multiroom booking

This commit is contained in:
Simon Emanuelsson
2025-04-01 17:04:47 +02:00
committed by Simon.Emanuelsson
parent 01e160db41
commit 3e0f503314
2 changed files with 18 additions and 4 deletions

View File

@@ -170,3 +170,12 @@ export enum PaymentCallbackStatusEnum {
Error = "error",
Cancel = "cancel",
}
export function combineRegExps(regexps: RegExp[], flags = "") {
return new RegExp(regexps.map((r) => r.source).join("|"), flags)
}
export const rateTypeRegex = {
ARB: /(^B[a-z]{3}\d{6}$)/,
VOUCHER: /(^VO[0-9a-z]*$)/,
}