Skip to content

Latest version of jgit doesn't match regexp. #23

Description

@MikeChuckRoast

Regexp only expecting one digit for first 3 positions; but latest version is at 4.11; i.e. 2 digits in the second location.
Additionally, the logic to provide an error about the version format also fails because version is empty (there is no version{1}).

Code changes:
ver = '[0-9].[0-9]{1,2}.[0-9].[0-9]{12}'; % regex for version number
version = regexp(tokens{1}{1},ver,'match','once'); % version

Also change instances of version{1} to version.

I can issue a pull request if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions