From f6d4c2d1b094e33848ed454f4a69f3c12cd44084 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sat, 28 Sep 2019 13:31:37 -0400 Subject: [PATCH] version bump to v2.3.0 --- lib/loofah.rb | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/loofah.rb b/lib/loofah.rb index 56634188..9e3e79ea 100644 --- a/lib/loofah.rb +++ b/lib/loofah.rb @@ -1,22 +1,22 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__))) -require 'nokogiri' +require "nokogiri" -require 'loofah/metahelpers' -require 'loofah/elements' +require "loofah/metahelpers" +require "loofah/elements" -require 'loofah/html5/safelist' -require 'loofah/html5/libxml2_workarounds' -require 'loofah/html5/scrub' +require "loofah/html5/safelist" +require "loofah/html5/libxml2_workarounds" +require "loofah/html5/scrub" -require 'loofah/scrubber' -require 'loofah/scrubbers' +require "loofah/scrubber" +require "loofah/scrubbers" -require 'loofah/instance_methods' -require 'loofah/xml/document' -require 'loofah/xml/document_fragment' -require 'loofah/html/document' -require 'loofah/html/document_fragment' +require "loofah/instance_methods" +require "loofah/xml/document" +require "loofah/xml/document_fragment" +require "loofah/html/document" +require "loofah/html/document_fragment" # == Strings and IO Objects as Input # @@ -28,7 +28,7 @@ # module Loofah # The version of Loofah you are using - VERSION = '2.2.2' + VERSION = "2.3.0" class << self # Shortcut for Loofah::HTML::Document.parse @@ -77,7 +77,7 @@ def scrub_xml_document(string_or_io, method) # A helper to remove extraneous whitespace from text-ified HTML def remove_extraneous_whitespace(string) - string.gsub(/\n\s*\n\s*\n/,"\n\n") + string.gsub(/\n\s*\n\s*\n/, "\n\n") end end end