fix herf match func
This commit is contained in:
@@ -68,7 +68,7 @@ export const isMatch = (s, p) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = `*${p}*`;
|
p = "*" + p + "*";
|
||||||
|
|
||||||
let [sIndex, pIndex] = [0, 0];
|
let [sIndex, pIndex] = [0, 0];
|
||||||
let [sRecord, pRecord] = [-1, -1];
|
let [sRecord, pRecord] = [-1, -1];
|
||||||
|
|||||||
Reference in New Issue
Block a user