Skip to content

Releases: longbridge/autocorrect

v1.2.0

10 Dec 04:50
82ec0c7
Compare
Choose a tag to compare

What's Changed

v1.1.1

08 Feb 15:38
3ffb0bb
Compare
Choose a tag to compare

What's Changed

  • Upgrade tdewolff/parse by @lvwxx in #9

New Contributors

  • @lvwxx made their first contribution in #9

Full Changelog: v1.1.0...v1.1.1

v1.0.1

27 Jul 03:01
Compare
Choose a tag to compare
  • Add space for full date.

Before: 2006年1月2日, After: 2006 年 1 月 2 日

v1.0.0

27 Jul 04:27
Compare
Choose a tag to compare
  • 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 即将发布"