module Rouge::Guessers::Util::SourceNormalizer

def self.normalize(source)

Returns:
  • (String, nil) -

Parameters:
  • source (String, nil) --
def self.normalize(source)
  source.sub(UTF8_BOM_RE, '').gsub(/\r\n/, "\n")
end