SEO no empty keywords

bzr revid: ddm@openerp.com-20130904041951-74uvloiz4uoj5egp
This commit is contained in:
ddm
2013-09-04 06:19:51 +02:00
parent d8168e7c8d
commit f09f8fcbf8
+1 -1
View File
@@ -107,7 +107,7 @@
var self = this;
// TODO Refine
var word = candidate ? candidate.replace(/[,;.:<>]+/g, " ").replace(/ +/g, " ").trim() : "";
if (!this.isKeywordListFull() && !this.isExistingKeyword(word)) {
if (word && !this.isKeywordListFull() && !this.isExistingKeyword(word)) {
var type = _.contains(this.suggestions(), word) ? 'advised' : 'new';
var keyword = new website.seo.Keyword(this, {
keyword: word,