diff options
author | 2023-10-30 11:07:17 +0100 | |
---|---|---|
committer | 2023-10-30 11:07:17 +0100 | |
commit | 2a4b26ed202759388f86ce6adfb2dcf471f42d4a (patch) | |
tree | ac08ef4d6c69f94ea263811fd2ec7ef302861f7e /vendor/github.com/yuin/goldmark/util/util.go | |
parent | [chore]: Bump github.com/tdewolff/minify/v2 from 2.19.10 to 2.20.0 (#2316) (diff) | |
download | gotosocial-2a4b26ed202759388f86ce6adfb2dcf471f42d4a.tar.xz |
[chore]: Bump github.com/yuin/goldmark from 1.5.6 to 1.6.0 (#2318)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.5.6 to 1.6.0.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.5.6...v1.6.0)
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/yuin/goldmark/util/util.go')
-rw-r--r-- | vendor/github.com/yuin/goldmark/util/util.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/github.com/yuin/goldmark/util/util.go b/vendor/github.com/yuin/goldmark/util/util.go index 1bfc58520..9bf09adf2 100644 --- a/vendor/github.com/yuin/goldmark/util/util.go +++ b/vendor/github.com/yuin/goldmark/util/util.go @@ -836,22 +836,6 @@ func IsAlphaNumeric(c byte) bool { return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' } -// IsEastAsianWideRune returns trhe if the given rune is an east asian wide character, otherwise false. -func IsEastAsianWideRune(r rune) bool { - // https://en.wikipedia.org/wiki/CJK_Symbols_and_Punctuation - var CJKSymbolsAndPunctuation = &unicode.RangeTable{ - R16: []unicode.Range16{ - {0x3000, 0x303F, 1}, - }, - } - return unicode.Is(unicode.Hiragana, r) || - unicode.Is(unicode.Katakana, r) || - unicode.Is(unicode.Han, r) || - unicode.Is(unicode.Lm, r) || - unicode.Is(unicode.Hangul, r) || - unicode.Is(CJKSymbolsAndPunctuation, r) -} - // A BufWriter is a subset of the bufio.Writer . type BufWriter interface { io.Writer |