lib/licensee/project_files/readme_file.rb in licensee-9.10.1 vs lib/licensee/project_files/readme_file.rb in licensee-9.11.0

- old
+ new

@@ -5,12 +5,12 @@ SCORES = { /\AREADME\z/i => 1.0, /\AREADME\.(#{Regexp.union(EXTENSIONS).source})\z/i => 0.9 }.freeze - TITLE_REGEX = /licen[sc]e:?/i - UNDERLINE_REGEX = /\n[-=]+/m + TITLE_REGEX = /licen[sc]e:?/i.freeze + UNDERLINE_REGEX = /\n[-=]+/m.freeze CONTENT_REGEX = /^ (?: # Header lookbehind [\#=]+\s#{TITLE_REGEX}\s*[\#=]* # Start of hashes or rdoc header | #{TITLE_REGEX}#{UNDERLINE_REGEX} # Start of underlined header @@ -23,10 +23,10 @@ [^\n]+#{UNDERLINE_REGEX} # Next of underlined header ) | \z # End of file ) - /mix + /mix.freeze def possible_matchers super.push(Matchers::Reference) end