Support version tags that don't start with v for semantic versioning (#303)

* Fixes #242

* Update semver version

* Update husky

* Update husky pre-commit hook

* Update dependencies

* Update dependencies

* Remove git add since changes will be automatically added

* Restore git add

* Update dependencies

* Update test
This commit is contained in:
David Finol
2022-01-02 15:31:48 -06:00
committed by GitHub
parent a3e783f430
commit c45cd78d0d
9 changed files with 1719 additions and 1134 deletions

View File

@@ -68,15 +68,15 @@ export default class Versioning {
* Regex to parse version description into separate fields
*/
static get descriptionRegex1() {
return /^v([\d.]+)-(\d+)-g(\w+)-?(\w+)*/g;
return /^v?([\d.]+)-(\d+)-g(\w+)-?(\w+)*/g;
}
static get descriptionRegex2() {
return /^v([\d.]+-\w+)-(\d+)-g(\w+)-?(\w+)*/g;
return /^v?([\d.]+-\w+)-(\d+)-g(\w+)-?(\w+)*/g;
}
static get descriptionRegex3() {
return /^v([\d.]+-\w+\.\d+)-(\d+)-g(\w+)-?(\w+)*/g;
return /^v?([\d.]+-\w+\.\d+)-(\d+)-g(\w+)-?(\w+)*/g;
}
static async determineVersion(strategy: string, inputVersion: string) {