Class | Licensee::Project::Readme |
In: |
lib/licensee/project_files/readme.rb
|
Parent: | LicenseFile |
SCORES | = | { /\AREADME\z/i => 1.0, /\AREADME\.(md|markdown|mdown|txt)\z/i => 0.9 |
CONTENT_REGEX | = | /^ (?:\#+\sLicen[sc]e # Start of hashes-based license header | Licen[sc]e\n[-=]+)$ # Start of underlined license header (.*?) # License content (?=^(?:\#+ # Next hashes-based header | [^\n]+\n[-=]+) # Next of underlined header | \z) # End of file /mix |