lib/facter/framework/formatters/yaml_fact_formatter.rb in facter-4.0.35 vs lib/facter/framework/formatters/yaml_fact_formatter.rb in facter-4.0.36
- old
+ new
@@ -54,10 +54,10 @@
def needs_quote?(value)
return false if value =~ /true|false/
return false if value[/^[0-9]+$/]
return true if value =~ /y|Y|yes|Yes|YES|n|N|no|No|NO|True|TRUE|False|FALSE|on|On|ON|off|Off|OFF|:/
return false if value[/[a-zA-Z]/]
- return false if value[/[0-9]+\.[0-9]+\./]
+ return false if value[/[0-9]+\.[0-9]+/]
true
end
end
end