Sha256: c7b3b81af35cc5e50171d6cbc4a119d41bc872c9600a795875e00a456d237248
Contents?: true
Size: 389 Bytes
Versions: 6
Compression:
Stored size: 389 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
6 entries across 6 versions & 1 rubygems