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