fix: minecraft title clause update

This commit is contained in:
IMB11 committed 2025-07-16 20:52:01 +01:00
1 parent 2f1a31a9e4
commit 28c8b59820
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -145,7 +145,8 @@ export const descriptionNags: Nag[] = [
status: 'required',
shouldShow: (context: NagContext) => {
const title = context.project.title?.toLowerCase() || ''
return title.includes('minecraft') && title.length > 0
const wordsInTitle = title.split(' ').filter((word) => word.length > 0)
return title.includes('minecraft') && title.length > 0 && wordsInTitle.length <= 3
},
link: {
path: 'settings',