protected function setLink(Release $release, $line)
	{
		$matches = [];

		if (preg_match('/^## \[([\w\.-\.]+)\](?:\[(\w+)\])?/', $line, $matches))
		{
			if (count($matches) >= 3)
			{
				$release->setLink($matches[2]);
				$release->setLinkName($matches[2]);
			}
			else
			{
				$release->setLink($matches[1]);
			}
		}
	}
protected function setLink(Release $release, $line)
	{
		$matches = [];

		if (preg_match('/^## \[([\w\.-\.]+)\](?:\[(\w+)\])?/', $line, $matches))
		{
			if (count($matches) >= 3)
			{
				$release->setLink($matches[2]);
				$release->setLinkName($matches[2]);
			}
			else
			{
				$release->setLink($matches[1]);
			}
		}
	}
protected function setLink ( Release $ release , $ line ) { $ matches = [ ] ; if ( preg_match ( '/^## \[([\w\.-\.]+)\](?:\[(\w+)\])?/' , $ line , $ matches ) ) { if ( count ( $ matches ) >= 3 ) { $ release -> setLink ( $ matches [ 2 ] ) ; $ release -> setLinkName ( $ matches [ 2 ] ) ; } else { $ release -> setLink ( $ matches [ 1 ] ) ; } } }
Extracts and sets the name of the link if there is one.

@param Release $release
@param string  $line
Extracts and sets the name of the link if there is one .