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