Skip to content
Snippets Groups Projects
Commit 40760077 authored by Ruben Bimberg's avatar Ruben Bimberg :computer:
Browse files

Merge branch 'staging' into tag-cloud

parents 1dd7050e 2d63c7e8
No related merge requests found
...@@ -5,7 +5,7 @@ export class CreateCommentKeywords { ...@@ -5,7 +5,7 @@ export class CreateCommentKeywords {
static isKeywordAcceptable(keyword: string) { static isKeywordAcceptable(keyword: string) {
const regex = /(^[ -@\[-`{-~]+$)/g; const regex = /(^[ -@\[-`{-~]+$)/g;
return keyword.match(regex) === null && keyword.length > 1; return keyword.match(regex) === null && keyword.length > 2;
} }
static isSpellingAcceptable(languagetoolService: LanguagetoolService, text: string, language: Language = 'auto') { static isSpellingAcceptable(languagetoolService: LanguagetoolService, text: string, language: Language = 'auto') {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment