chore: check "JS:" in title in lint-changelog.js

This commit is contained in:
Georgii Dolzhykov committed 2020-04-17 03:38:53 +03:00
1 parent 915327d61d
commit 5d438e3f25
1 file changed
+3 -1
+3 -1
View File
@@ -117,7 +117,9 @@ for (const category of CHANGELOG_CATEGORIES) {
}
const [, title] = titleMatch;
const categoryInTitle = title.split(":").shift().trim();
if (CHANGELOG_CATEGORIES.includes(categoryInTitle.toLowerCase())) {
if (
[...CHANGELOG_CATEGORIES, "js"].includes(categoryInTitle.toLowerCase())
) {
showErrorMessage(
`[${displayPath}]: Please remove "${categoryInTitle}:" in title.`
);