Skip to content

Commit

Permalink
golang.org/x/text v0.14.0 => v0.17.0 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0rg authored Aug 23, 2024
1 parent 7d4f822 commit aa312d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/s0rg/fantasyname

go 1.21.4
go 1.22

require golang.org/x/text v0.14.0
require golang.org/x/text v0.17.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
8 changes: 4 additions & 4 deletions wrappers/collapser.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Collapsed(s fmt.Stringer) fmt.Stringer {

func (cl *collapser) String() string {
var (
max, cnt int
top, cnt int
cur, prev rune
rres = []rune(cl.s.String())
rout = make([]rune, 0, len(rres))
Expand All @@ -28,13 +28,13 @@ func (cl *collapser) String() string {
cnt = 0
}

max = 2
top = 2

if needCollapse(cur) {
max = 1
top = 1
}

if cnt < max {
if cnt < top {
rout = append(rout, cur)
}

Expand Down

0 comments on commit aa312d0

Please sign in to comment.