lib/license_finder/license/text.rb in license_finder-5.6.2 vs lib/license_finder/license/text.rb in license_finder-5.7.0

- old
+ new

@@ -1,12 +1,12 @@ # frozen_string_literal: true module LicenseFinder class License module Text - SPACES = /\s+/ - QUOTES = /['`"]{1,2}/ - PLACEHOLDERS = /<[^<>]+>/ + SPACES = /\s+/.freeze + QUOTES = /['`"]{1,2}/.freeze + PLACEHOLDERS = /<[^<>]+>/.freeze def self.normalize_punctuation(text) text.gsub(SPACES, ' ') .gsub(QUOTES, '"') .strip