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.
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 numberversion = regexp(tokens{1}{1},ver,'match','once'); % versionAlso change instances of
version{1}toversion.I can issue a pull request if desired.