Skip to content

Commit 50b33d5

Browse files
committed
Use each_codepoint
1 parent 0464a50 commit 50b33d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/babosa/identifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def truncate_bytes!(max)
230230

231231
curr = 0
232232
new = []
233-
codepoints.each do |char|
233+
each_codepoint do |char|
234234
break if curr > max
235235

236236
char = [char].pack("U")

0 commit comments

Comments
 (0)