From e1de3cf0cc4086a3a6db8c07476dcd3fb90fbd6f Mon Sep 17 00:00:00 2001
From: DayShift <113507098+ShiyuBanzhou@users.noreply.github.com>
Date: Mon, 20 Jan 2025 19:32:34 +0800
Subject: [PATCH] fix the bug of regex

---
 server/modules/apicache/apicache.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/modules/apicache/apicache.js b/server/modules/apicache/apicache.js
index 2ca75ca4e..58f5e1971 100644
--- a/server/modules/apicache/apicache.js
+++ b/server/modules/apicache/apicache.js
@@ -485,7 +485,7 @@ function ApiCache() {
         }
 
         if (typeof duration === "string") {
-            let split = duration.match(/^([\d\.,]+)(?!\1)\s?((?:(?!\d)\w)+)$/);
+            let split = duration.match(/^([\d\.,]+)\s?((?:(?!\d)\w)+)$/);
 
             if (split.length === 3) {
                 let len = parseFloat(split[1]);