From 450eeab56ef2ee8d900a3bcb9dd49ff31de4624c Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Thu, 26 Dec 2024 00:54:20 +0800 Subject: [PATCH] Fix regex --- src/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/index.ts b/src/config/index.ts index 4b53811..98c67c4 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -3,6 +3,6 @@ import { FuelType } from "@/types"; export const CACHE_TTL = 24 * 60 * 60; export const HYBRID_REGEX = new RegExp( - `^(${FuelType.Diesel}|${FuelType.Petrol})-${FuelType.Electric}(\s\(Plug-In\))?$`, + `^(${FuelType.Diesel}|${FuelType.Petrol})-${FuelType.Electric}(\\s\\(Plug-In\\))?$`, "i", );