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
@@ -46,7 +46,7 @@ module.exports = class Date extends BaseService {
|
||||
pattern: ':timestamp',
|
||||
namedParams: { timestamp: '1540814400' },
|
||||
staticPreview: this.render({ relativeDateString: '2 days ago' }),
|
||||
keywords: ['date', 'time', 'countdown', 'countup', 'moment'],
|
||||
keywords: ['time', 'countdown', 'countup', 'moment'],
|
||||
documentation,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user