src/package/Support/Git.php
public function extractVersion($string)
    {
        preg_match_all(
            $this->config->get('git.version.matcher'),
            $string,
            $matches
        );

        if (empty($matches[0])) {
            throw new GitTagNotFound('No git tags found in this repository');
        }

        return $matches;
    }
public function extractVersion($string)
    {
        preg_match_all(
            $this->config->get('git.version.matcher'),
            $string,
            $matches
        );

        if (empty($matches[0])) {
            throw new GitTagNotFound('No git tags found in this repository');
        }

        return $matches;
    }
public function extractVersion ( $ string ) { preg_match_all ( $ this -> config -> get ( 'git.version.matcher' ) , $ string , $ matches ) ; if ( empty ( $ matches [ 0 ] ) ) { throw new GitTagNotFound ( 'No git tags found in this repository' ) ; } return $ matches ; }
Break and extract version from string.

@param $string

@throws GitTagNotFound

@return array
Break and extract version from string .