mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2026-10-23 21:33:59 +00:00
路径转换方法:提高替换模式的兼容性。
This commit is contained in:
1 parent
c4a8cef4ce
commit
c90acbec6c
1 file changed
+1
-1
+1
-1
@@ -694,7 +694,7 @@ class AutoReseed
|
|||||||
case 3: // 替换
|
case 3: // 替换
|
||||||
foreach ($pathArray as $key => $val) {
|
foreach ($pathArray as $key => $val) {
|
||||||
if (strpos($path, $key)===0) { // 没用$path == $key判断,是为了提高兼容性
|
if (strpos($path, $key)===0) { // 没用$path == $key判断,是为了提高兼容性
|
||||||
return $val;
|
return $val . substr($path, strlen($key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user