Skip to content

Commit

Permalink
Replace .squish with .strip
Browse files Browse the repository at this point in the history
  • Loading branch information
Manjunath committed Oct 7, 2021
1 parent aa76ea9 commit 01d4796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/sources/env_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def load
def __value(v)
if %w(true false).include? v
eval(v)
elsif v.squish =~ /^:[^:]/
elsif v.strip =~ /^:[^:]/
v.parameterize.underscore.to_sym
else
Integer(v) rescue Float(v) rescue v
Expand Down

0 comments on commit 01d4796

Please sign in to comment.