From 3e0e220908f137344f423a80958ca8672fbf64c1 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 7 Feb 2019 20:51:48 +0100 Subject: set trigger threshhold to 40 characters --- src/webview/recipe.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/webview/recipe.js') diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 38a65276e..fa107ba1a 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js @@ -63,8 +63,6 @@ class RecipeController { autorun(() => this.update()); - console.log(JSON.parse(JSON.stringify(this.settings))); - const cldFactory = await loadModule(); const identifier = cldFactory.create(0, 1000); @@ -79,7 +77,7 @@ class RecipeController { } // Force a minimum length to get better detection results - if (value.length < 30) return; + if (value.length < 40) return; debug('Detecting language for', value); const findResult = identifier.findLanguage(value); -- cgit v1.2.3-54-g00ecf