fix herf match func

This commit is contained in:
Gabe Yuan
2023-09-05 16:11:33 +08:00
parent a44747ccad
commit 3ae10bfd04

View File

@@ -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];