Skip to content

Commit

Permalink
(PUP-11934) Use String#each_codepoint instead of deprecated String#co…
Browse files Browse the repository at this point in the history
…depoints
  • Loading branch information
justinstoller committed Aug 30, 2023
1 parent 5e1cea2 commit 18dffcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/pops/time/timespan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def internal_parse(str)
position = -1
fstart = 0

str.codepoints do |codepoint|
str.each_codepoint do |codepoint|
position += 1
if state == STATE_LITERAL
if codepoint == 0x25 # '%'
Expand Down

0 comments on commit 18dffcc

Please sign in to comment.