Sha256: 21e591af5d0f28af0a98f2dec0228dcc3ba24afbc80a03b24396e123ea0aca9d
Contents?: true
Size: 382 Bytes
Versions: 4
Compression:
Stored size: 382 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 private def license_property match = @file.content.match LICENSE_REGEX match[1].downcase if match && match[1] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems