Skip to content

Commit

Permalink
Rename longbridgeapp to longbridge.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Dec 10, 2024
1 parent 2a9a345 commit 56ee9cf
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/longbridgeapp/autocorrect/releases
https://github.com/longbridge/autocorrect/releases

## 1.0.0

Expand All @@ -12,7 +12,7 @@ func (my myFormatter) Format(text string) string {
return strings.ReplaceAll(text, "ios", "iOS")
}

autocorrect.Format("新版本ios即将发布", myFormatter{})
autocorrect.Format("新版本 ios 即将发布", myFormatter{})
// "新版本 iOS 即将发布"
```

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AutoCorrrect for Go

[![Go](https://github.com/longbridgeapp/autocorrect/workflows/Go/badge.svg)](https://github.com/longbridgeapp/autocorrect/actions?query=workflow%3AGo)
[![Go](https://github.com/longbridge/autocorrect/workflows/Go/badge.svg)](https://github.com/longbridge/autocorrect/actions?query=workflow%3AGo)

Automatically add whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

Expand All @@ -25,7 +25,7 @@ Go 版本的 [AutoCorrect](https://github.com/huacnlee/autocorrect) 实现,用
## Usage

```
go get github.com/longbridgeapp/autocorrect
go get github.com/longbridge/autocorrect
```

Use `autocorrect.Format` to format plain text.
Expand All @@ -35,7 +35,7 @@ https://play.golang.org/p/ntVhrGYnxNk
```go
package main

import "github.com/longbridgeapp/autocorrect"
import "github.com/longbridge/autocorrect"

func main() {
autocorrect.Format("长桥LongBridge App下载")
Expand Down Expand Up @@ -83,7 +83,7 @@ Use `autocorrect.Unformat` to cleanup spacings in plain text.
```go
package main

import "github.com/longbridgeapp/autocorrect"
import "github.com/longbridge/autocorrect"

func main() {
autocorrect.Unformat("据港交所最新权益披露资料显示,2019 年 12 月 27 日,三生制药获 JP Morgan Chase & Co.每股均价 9.582 港元,增持 270.3 万股,总价约 2590 万港元。")
Expand All @@ -98,7 +98,7 @@ https://go.dev/play/p/qS6NuPcYjSa
```go
package main

import "github.com/longbridgeapp/autocorrect"
import "github.com/longbridge/autocorrect"

func main() {
autocorrect.FormatHTML(htmlBody)
Expand All @@ -113,7 +113,7 @@ func main() {
Run `go test -bench=.` to benchmark.

```
pkg: github.com/longbridgeapp/autocorrect
pkg: github.com/longbridge/autocorrect
BenchmarkFormat50-8 28234 40439 ns/op
BenchmarkFormat100-8 15157 79213 ns/op
BenchmarkFormat400-8 4172 287352 ns/op
Expand Down
2 changes: 1 addition & 1 deletion _fixtures/large.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/longbridgeapp/assert"
"github.com/longbridge/assert"
)

func assertCases(t *testing.T, cases map[string]string) {
Expand Down
2 changes: 1 addition & 1 deletion fullwidth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package autocorrect
import (
"testing"

"github.com/longbridgeapp/assert"
"github.com/longbridge/assert"
)

func Test_fullwidth(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/longbridgeapp/autocorrect
module github.com/longbridge/autocorrect

go 1.13

require (
github.com/longbridgeapp/assert v0.1.0
github.com/longbridge/assert v0.1.0
github.com/pkg/errors v0.8.1
github.com/tdewolff/parse/v2 v2.6.5
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/longbridgeapp/assert v0.1.0 h1:KkQlHUJSpuUFkUDjwBJgghFl31+wwSDHTq/WRrvLjko=
github.com/longbridgeapp/assert v0.1.0/go.mod h1:ew3umReliXtk1bBG4weVURxdvR0tsN+rCEfjnA4YfxI=
github.com/longbridge/assert v0.1.0 h1:KkQlHUJSpuUFkUDjwBJgghFl31+wwSDHTq/WRrvLjko=
github.com/longbridge/assert v0.1.0/go.mod h1:ew3umReliXtk1bBG4weVURxdvR0tsN+rCEfjnA4YfxI=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
2 changes: 1 addition & 1 deletion halfwidth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package autocorrect
import (
"testing"

"github.com/longbridgeapp/assert"
"github.com/longbridge/assert"
)

func Test_halfwidth(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"testing"

"github.com/longbridgeapp/assert"
"github.com/longbridge/assert"
)

func readFile(filename string) (out string) {
Expand Down
2 changes: 1 addition & 1 deletion unformat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/longbridgeapp/assert"
"github.com/longbridge/assert"
)

func TestUnformat(t *testing.T) {
Expand Down

0 comments on commit 56ee9cf

Please sign in to comment.