chore: update build

This commit is contained in:
Adrian Smijulj 2022-06-12 19:25:58 +02:00
parent 138e7df3d6
commit ef414e5205

2
dist/main/index.js vendored
View file

@ -489,6 +489,7 @@ const DEFAULT_COMMIT_TYPES = [
"refactor",
"test",
"build",
"perf",
"ci",
"chore",
"revert",
@ -510,6 +511,7 @@ const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES) =>
}
possiblyValidCommitType = possiblyValidCommitType
.replace(/\s/g, "") // Remove all whitespace
.replace(/\!/g, "") // Remove bang for notify breaking change
.replace(/()/g, "") // Remove all whitespace
.replace(/[^a-z]/g, ""); // Only leave [a-z] characters.
return availableTypes.includes(possiblyValidCommitType);