diff --git a/lib/puppet/pops/time/timespan.rb b/lib/puppet/pops/time/timespan.rb index 0a65fee3cf9..3ab6a3899a1 100644 --- a/lib/puppet/pops/time/timespan.rb +++ b/lib/puppet/pops/time/timespan.rb @@ -633,7 +633,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 # '%'