diff options
| author | 2024-02-05 09:50:35 +0000 | |
|---|---|---|
| committer | 2024-02-05 09:50:35 +0000 | |
| commit | a482cb59f2c9e29c133c4b864cc1e32af1fb99a7 (patch) | |
| tree | 65778a279d5aa84d53f1a997a958e8f42c64e981 /vendor/github.com/yuin/goldmark/util | |
| parent | [chore] bump activity dependency -> v1.6.0-gts (#2599) (diff) | |
| download | gotosocial-a482cb59f2c9e29c133c4b864cc1e32af1fb99a7.tar.xz | |
[chore]: Bump github.com/yuin/goldmark from 1.6.0 to 1.7.0 (#2603)
Diffstat (limited to 'vendor/github.com/yuin/goldmark/util')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/util/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/yuin/goldmark/util/util.go b/vendor/github.com/yuin/goldmark/util/util.go index 9bf09adf2..e2c92c6bb 100644 --- a/vendor/github.com/yuin/goldmark/util/util.go +++ b/vendor/github.com/yuin/goldmark/util/util.go @@ -808,7 +808,7 @@ func IsPunct(c byte) bool { // IsPunctRune returns true if the given rune is a punctuation, otherwise false. func IsPunctRune(r rune) bool { - return int32(r) <= 256 && IsPunct(byte(r)) || unicode.IsPunct(r) + return unicode.IsSymbol(r) || unicode.IsPunct(r) } // IsSpace returns true if the given character is a space, otherwise false. |
