From 3ae10bfd04263dbf122a397ee3d4b681d7d854b5 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Tue, 5 Sep 2023 16:11:33 +0800 Subject: [PATCH] fix herf match func --- src/libs/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils.js b/src/libs/utils.js index 389f81d..5483c59 100644 --- a/src/libs/utils.js +++ b/src/libs/utils.js @@ -68,7 +68,7 @@ export const isMatch = (s, p) => { return false; } - p = `*${p}*`; + p = "*" + p + "*"; let [sIndex, pIndex] = [0, 0]; let [sRecord, pRecord] = [-1, -1];