#154 Detect more license files
Merged 2 years ago by ngompa. Opened 2 years ago by dcavalca.
fedora-rust/ dcavalca/rust2rpm license  into  main

file modified
+1 -1
@@ -38,7 +38,7 @@ 

      lstrip_blocks=True)

  LICENSES = re.compile(

           r"(COPYING|COPYING[\.\-].*|COPYRIGHT|COPYRIGHT[\.\-].*|"

-          r"EULA|EULA[\.\-].*|licen[cs]e|licen[cs]e.*|LICEN[CS]E|"

+          r"EULA|EULA[\.\-].*|[Ll]icen[cs]e|[Ll]icen[cs]e.*|LICEN[CS]E|"

           r"LICEN[CS]E[\.\-].*|.*[\.\-]LICEN[CS]E.*|NOTICE|NOTICE[\.\-].*|"

           r"PATENTS|PATENTS[\.\-].*|UNLICEN[CS]E|UNLICEN[CS]E[\.\-].*|"

           r"agpl[\.\-].*|gpl[\.\-].*|lgpl[\.\-].*|AGPL-.*[0-9].*|"

This should pick up things like License.md

Pull-Request has been merged by ngompa

2 years ago
Metadata