Skip to content

Commit 0a3ced0

Browse files
authored
Merge pull request #9103 from justinstoller/bug/maint/PUP-11934_deprecated_codepoints_usage
(PUP-11934) Use String#each_codepoint instead of deprecated String#codepoints
2 parents 154df29 + dc95e7f commit 0a3ced0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/pops/time/timespan.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def internal_parse(str)
633633
position = -1
634634
fstart = 0
635635

636-
str.codepoints do |codepoint|
636+
str.each_codepoint do |codepoint|
637637
position += 1
638638
if state == STATE_LITERAL
639639
if codepoint == 0x25 # '%'

0 commit comments

Comments
 (0)