Sha256: cdf9ff611a2c01f92fc5626e368e2b94da09105f1376534baf5419de3b3281db
Contents?: true
Size: 447 Bytes
Versions: 6
Compression:
Stored size: 447 Bytes
Contents
class SCSSBeautifier::Formatters::LeadingZero < Sass::Tree::Visitors::Base # ExcludeZero Only def visit_prop(node) if Sass::Script::Tree::Literal === node.value && Sass::Script::Value::String === node.value.value node_value = node.value.value if node.value.value.to_s.match(/\b0./) node.instance_variable_set(:@value, Sass::Script::Value::String.new(node.value.value.to_s.gsub(/\b0/, ''))) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems