We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b84f6 commit efd5e32Copy full SHA for efd5e32
2 files changed
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+## [2.1.7] - 2023-01-17
4
+
5
+- 修复 namespace 含大写字母时无法访问的问题. 原因是因为域名会自动转小写导致无法找到对应的 host, 所以将 id 统一小写化
6
7
## [2.1.6] - 2023-01-17
8
9
- 将 hid 添加到命令参数中, 方便与其他编辑器集成(指[vscode lcode hub](https://github.com/vscode-lcode/hub))
hub/id.go
@@ -4,6 +4,7 @@ import (
"fmt"
"regexp"
"strconv"
+ "strings"
"github.com/jellydator/ttlcache/v3"
10
"github.com/lainio/err2"
@@ -17,7 +18,8 @@ var _ bash.IDGenerator = (*Hub)(nil).IDGenerator
17
18
19
func (hub *Hub) IDGenerator(c bash.LcodeClient) (id bash.ID, err error) {
20
defer err2.Handle(&err)
- host := parseIDRaw(c.RawID())
21
+ rawID := strings.ToLower(c.RawID())
22
+ host := parseIDRaw(rawID)
23
if host.No == 0 {
24
To(hub.addHost(&host))
25
}
0 commit comments