module Rouge::Guessers::Util::SourceNormalizer
def self.normalize(source)
-
(String, nil)
-
Parameters:
-
source
(String, nil
) --
def self.normalize(source) source.sub(UTF8_BOM_RE, '').gsub(/\r\n/, "\n") end
(String, nil)
-
source
(String, nil
)
--
def self.normalize(source) source.sub(UTF8_BOM_RE, '').gsub(/\r\n/, "\n") end