lib/licensee/license_field.rb in licensee-9.3.0 vs lib/licensee/license_field.rb in licensee-9.3.1

- old
+ new

@@ -36,9 +36,10 @@ array.map { |key| LicenseField.find(key) } end # Given a license body, returns an array of included LicneseFields def from_content(content) + return [] unless content LicenseField.from_array content.scan(FIELD_REGEX).flatten end end alias key name