Skip to content

Commit 6722dcc

Browse files
committed
fix: 正则优化
1 parent 14b9c97 commit 6722dcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/apps/login.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import os from 'node:os'
55

66
const url = { IPv4: ['https://4.ipw.cn'], IPv6: ['https://6.ipw.cn'] }
77

8-
export const login = karin.command(/#?(面板|web)登录$/i, async (e) => {
8+
export const login = karin.command(/^#?(面板|web)登录$/i, async (e) => {
99
const net = os.networkInterfaces()
1010
const config = cfg.get()
1111
const IP: { lan: { ipv4: null | string, ipv6: null | string }, net: { ipv4: null | string, ipv6: null | string } } =

0 commit comments

Comments
 (0)