Function

AppStream-1.0AppStreamis_spdx_license_expressionSince 0.9.8

  • Checks the licence string to check it being a valid licence. NOTE: SPDX licenses can't typically contain brackets.

    Parameters

    • license: string

      a SPDX license string, e.g. "CC-BY-3.0 and GFDL-1.3"

    Returns boolean

    true if the icon is a valid "SPDX license"

    0.9.8