Skip to content

Latest commit

 

History

History
82 lines (45 loc) · 1.43 KB

CHANGELOG.md

File metadata and controls

82 lines (45 loc) · 1.43 KB

https://github.com/longbridgeapp/autocorrect/releases

1.0.0

  • Format, FormatHTML, Unformat, UnformatHTML support custom option for addition processes.

Example:

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

  • Auto correct punctuation into fullwidth.

0.9.0

  • Change rule for ignore spacing between #, $ chars.

0.8.2

  • Fix some break line miss bug.

0.8.0

  • Add Unformat / UnformatHTML method for remove spacings.

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

  • Fix halfwidth to correct fullwidth spaces.

0.6.0

  • Auto correct FullWidth -> halfwidth for Letters, Numbers, and Colon in time.

0.4.1

  • Avoid create regex on format method call for performance up (~40%).

0.4.0

  • Add Full CJK (Chinese, Japanese, Korean) support.

0.3.3

  • Fix space around -;

0.3.2

  • Fix add space round *;

0.3.1

  • Fix HTML replace when content has escapeable &,   chars.

0.3.0

  • Rename package from autospace to autocorrect.

0.2.0

  • Add FormatHTML method for process HTML contents.

0.1.0

  • First release.