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:
Pierre-Yves B
2019-02-13 17:14:12 +00:00
committed by Paul Melnikow
parent 28948925c2
commit bc96f0e25f
25 changed files with 70 additions and 82 deletions

View File

@@ -49,7 +49,6 @@ function VersionForExtensionType(extensionType) {
title: `Wordpress ${capt} Version`,
namedParams: { slug: exampleSlug },
staticPreview: this.render({ response: { version: 2.5 } }),
keywords: ['wordpress'],
},
]
}