module Sprockets::Utils

def normalize_extension(extension)


# => ".css"
normalize_extension(".css")

# => ".js"
normalize_extension("js")

Internal: Prepends a leading "." to an extension if its missing.
def normalize_extension(extension)
  extension = extension.to_s
  if extension[/^\./]
    extension
  else
    ".#{extension}"
  end
end