libappstream::functions

Function is_spdx_license_expression

source
pub fn is_spdx_license_expression(license: &str) -> bool
Expand description

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

§license

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

§Returns

true if the icon is a valid “SPDX license”