Skip to content

Commit 2ab92d0

Browse files
committed
feat: publish v0.0.2
1 parent 08c8524 commit 2ab92d0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Simple, lightweight, reliable, Docker deployable, easy to maintain.
3232
One command is all it takes to deploy the service to port 8080 using Docker.
3333

3434
```shell
35-
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.1
35+
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.2
3636
```
3737

3838
## Usage

docs/zhs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LessAPI-DuckDuckGo 是一个搜索引擎API服务。
3535
使用Docker只需要一个命令即可将服务部署到8080端口。
3636

3737
```shell
38-
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.1
38+
docker run -d -p 8080:8080 --restart=unless-stopped --name lessapi-duckduckgo lessapi/lessapi-duckduckgo:v0.0.2
3939
```
4040

4141
## 使用

internal/searchs/list_language.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package searchs
22

33
import (
44
"fmt"
5+
"strings"
6+
57
"github.com/lessapidev/lessapi-duckduckgo/internal/types"
68
"github.com/playwright-community/playwright-go"
79
)
@@ -73,7 +75,7 @@ func ListLanguage(param types.ListLanguagePayload) (*types.ListLanguageResponse,
7375
return nil, fmt.Errorf("could not get text content: %w", err)
7476
}
7577
l = append(l, types.LanguageType{
76-
Code: code,
78+
Code: strings.ReplaceAll(code, "_", "-"),
7779
Name: name,
7880
})
7981
}

version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package lessapi_duckduckgo
22

33
const ServerName = "LessAPI-DuckDuckGo"
44
const ProjectGithub = "https://github.com/lessapidev/lessapi-duckduckgo"
5-
const Version = "0.0.1"
5+
const Version = "0.0.2"

0 commit comments

Comments
 (0)