@maiyunnet/kebab 3.1.12 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/sys/child.js +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ------------------------
|
|
10
10
|
*/
|
|
11
11
|
/** --- 当前系统版本号 --- */
|
|
12
|
-
export const VER = '3.1.
|
|
12
|
+
export const VER = '3.1.13';
|
|
13
13
|
// --- 服务端用的路径 ---
|
|
14
14
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
15
15
|
/** --- /xxx/xxx --- */
|
package/package.json
CHANGED
package/sys/child.js
CHANGED
|
@@ -586,7 +586,7 @@ function getVhostByHostname(hostname) {
|
|
|
586
586
|
}
|
|
587
587
|
else if (domain.includes('*')) {
|
|
588
588
|
// --- 通配符匹配 ---
|
|
589
|
-
domain = domain.replace(
|
|
589
|
+
domain = domain.replace(/\./g, '\\.').replace(/\*/, '.+?');
|
|
590
590
|
if (new RegExp(`^${domain}$`).test(hostname)) {
|
|
591
591
|
vSub = vhost;
|
|
592
592
|
}
|