mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 04:10:51 +08:00
Merge pull request #268 from router-for-me/tools
fix: use underscore suffix in short name mapping
This commit is contained in:
@@ -289,7 +289,7 @@ func buildShortNameMap(names []string) map[string]string {
|
|||||||
}
|
}
|
||||||
base := cand
|
base := cand
|
||||||
for i := 1; ; i++ {
|
for i := 1; ; i++ {
|
||||||
suffix := "~" + strconv.Itoa(i)
|
suffix := "_" + strconv.Itoa(i)
|
||||||
allowed := limit - len(suffix)
|
allowed := limit - len(suffix)
|
||||||
if allowed < 0 {
|
if allowed < 0 {
|
||||||
allowed = 0
|
allowed = 0
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ func buildShortNameMap(names []string) map[string]string {
|
|||||||
}
|
}
|
||||||
base := cand
|
base := cand
|
||||||
for i := 1; ; i++ {
|
for i := 1; ; i++ {
|
||||||
suffix := "~" + strconv.Itoa(i)
|
suffix := "_" + strconv.Itoa(i)
|
||||||
allowed := limit - len(suffix)
|
allowed := limit - len(suffix)
|
||||||
if allowed < 0 {
|
if allowed < 0 {
|
||||||
allowed = 0
|
allowed = 0
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ func buildShortNameMap(names []string) map[string]string {
|
|||||||
}
|
}
|
||||||
base := cand
|
base := cand
|
||||||
for i := 1; ; i++ {
|
for i := 1; ; i++ {
|
||||||
suffix := "~" + strconv.Itoa(i)
|
suffix := "_" + strconv.Itoa(i)
|
||||||
allowed := limit - len(suffix)
|
allowed := limit - len(suffix)
|
||||||
if allowed < 0 {
|
if allowed < 0 {
|
||||||
allowed = 0
|
allowed = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user