summaryrefslogtreecommitdiff
path: root/vendor/github.com/yuin/goldmark/util
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-02-05 09:50:35 +0000
committerLibravatar GitHub <noreply@github.com>2024-02-05 09:50:35 +0000
commita482cb59f2c9e29c133c4b864cc1e32af1fb99a7 (patch)
tree65778a279d5aa84d53f1a997a958e8f42c64e981 /vendor/github.com/yuin/goldmark/util
parent[chore] bump activity dependency -> v1.6.0-gts (#2599) (diff)
downloadgotosocial-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.go2
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.