Sha256: 34ccd8fc9da521cf97d57a93d33361a78f3ffb9d7d96f2435375a928d54977e1
Contents?: true
Size: 399 Bytes
Versions: 5
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems