Example keywords validation (#2956)
This pull request closes #2551: making sure that the keywords don't already appear in the example's title. I also added validation that checks that they are at least two characters long, as this is enforced by the homepage when type your search.
This commit is contained in:
committed by
Paul Melnikow
parent
28948925c2
commit
bc96f0e25f
@@ -38,7 +38,7 @@ module.exports = class GithubCommitActivity extends LegacyService {
|
||||
message: '457/year',
|
||||
color: 'blue',
|
||||
},
|
||||
keywords: ['GitHub', 'commit', 'commits', 'activity'],
|
||||
keywords: ['commits'],
|
||||
documentation,
|
||||
},
|
||||
{
|
||||
@@ -50,7 +50,7 @@ module.exports = class GithubCommitActivity extends LegacyService {
|
||||
message: '38/month',
|
||||
color: 'blue',
|
||||
},
|
||||
keywords: ['GitHub', 'commit', 'commits', 'activity'],
|
||||
keywords: ['commits'],
|
||||
documentation,
|
||||
},
|
||||
{
|
||||
@@ -62,7 +62,7 @@ module.exports = class GithubCommitActivity extends LegacyService {
|
||||
message: '9/week',
|
||||
color: 'blue',
|
||||
},
|
||||
keywords: ['GitHub', 'commit', 'commits', 'activity'],
|
||||
keywords: ['commits'],
|
||||
documentation,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user