-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,80 @@ | ||
0.11.0 | ||
------ | ||
## 1.0.0 | ||
|
||
- `Format`, `FormatHTML`, `Unformat`, `UnformatHTML` support custom option for addition processes. | ||
|
||
Example: | ||
|
||
```go | ||
type myFormatter struct {} | ||
func (my myFormatter) Format(text string) string { | ||
return strings.ReplaceAll(text, "ios", "iOS") | ||
} | ||
|
||
autocorrect.Format("新版本ios即将发布", myFormatter{}) | ||
// "新版本 iOS 即将发布" | ||
``` | ||
|
||
## 0.11.0 | ||
|
||
- Fix fullwidth to remove `;` for fix invalid convert with HTML Entity case. | ||
|
||
0.10.0 | ||
-------- | ||
## 0.10.0 | ||
|
||
- Auto correct punctuation into fullwidth. | ||
|
||
0.9.0 | ||
-------- | ||
## 0.9.0 | ||
|
||
- Change rule for ignore spacing between `#`, `$` chars. | ||
|
||
0.8.2 | ||
-------- | ||
## 0.8.2 | ||
|
||
- Fix some break line miss bug. | ||
|
||
0.8.0 | ||
-------- | ||
## 0.8.0 | ||
|
||
- Add `Unformat` / `UnformatHTML` method for remove spacings. | ||
|
||
0.7.0 | ||
-------- | ||
## 0.7.0 | ||
|
||
- Use new HTML parser to format HTML for performance up. | ||
- Avoid format text with script/style/textarea/pre tags. | ||
|
||
0.6.1 | ||
-------- | ||
## 0.6.1 | ||
|
||
- Fix halfwidth to correct fullwidth spaces. | ||
|
||
0.6.0 | ||
-------- | ||
## 0.6.0 | ||
|
||
- Auto correct FullWidth -> halfwidth for Letters, Numbers, and Colon in time. | ||
|
||
0.4.1 | ||
-------- | ||
## 0.4.1 | ||
|
||
- Avoid create regex on format method call for performance up (~40%). | ||
|
||
0.4.0 | ||
-------- | ||
## 0.4.0 | ||
|
||
- Add Full CJK (Chinese, Japanese, Korean) support. | ||
|
||
0.3.3 | ||
-------- | ||
## 0.3.3 | ||
|
||
- Fix space around `-`; | ||
|
||
0.3.2 | ||
-------- | ||
## 0.3.2 | ||
|
||
- Fix add space round `*`; | ||
|
||
0.3.1 | ||
-------- | ||
## 0.3.1 | ||
|
||
- Fix HTML replace when content has escapeable `&`, ` ` chars. | ||
|
||
0.3.0 | ||
-------- | ||
## 0.3.0 | ||
|
||
- Rename package from `autospace` to `autocorrect`. | ||
|
||
0.2.0 | ||
-------- | ||
## 0.2.0 | ||
|
||
- Add `FormatHTML` method for process HTML contents. | ||
|
||
0.1.0 | ||
-------- | ||
## 0.1.0 | ||
|
||
- First release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters