function SpdxLicenses::getExceptionsExpression
Return value
string
1 call to SpdxLicenses::getExceptionsExpression()
- SpdxLicenses::isValidLicenseString in vendor/
composer/ spdx-licenses/ src/ SpdxLicenses.php
File
-
vendor/
composer/ spdx-licenses/ src/ SpdxLicenses.php, line 277
Class
Namespace
Composer\SpdxCode
private function getExceptionsExpression() {
if (null === $this->exceptionsExpression) {
$exceptions = array_map('preg_quote', array_keys($this->exceptions));
rsort($exceptions);
$exceptions = implode('|', $exceptions);
$this->exceptionsExpression = $exceptions;
}
return $this->exceptionsExpression;
}