Sha256: c8fecd762fbe48238e3f1303a6c4e00b9b92597c860a6ebbe9872f2365087841

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module Licensee
  module Matchers
    class Cargo < Licensee::Matchers::Package
      LICENSE_REGEX = %r{
        ^\s*[\'\"]?license[\'\"]?\s*=\s*[\'\"]([a-z\-0-9\. +()\/]+)[\'\"]\s*
      }ix.freeze

      private

      def license_property
        match = @file.content.match LICENSE_REGEX
        match[1].downcase if match && match[1]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
licensee-9.11.0 lib/licensee/matchers/cargo.rb