From 6ec20ee873bce6833791f0eef01d7ecd7c2ae600 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Sun, 14 Jul 2024 12:41:33 +0200 Subject: [PATCH] Guesslang does not support Vue --- public/langdetect-worker.js | 2 +- src/editor/languages.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/langdetect-worker.js b/public/langdetect-worker.js index 72a66e8..95ca257 100644 --- a/public/langdetect-worker.js +++ b/public/langdetect-worker.js @@ -1,6 +1,6 @@ importScripts("guesslang.min.js") -GUESSLANG_LANGUAGES = ["json","py","html","sql","md","java","php","css","xml","cpp","rs","cs","rb","sh","yaml","toml","go","clj","erl","js","ts","swift","kt","groovy","ps1","vue"] +GUESSLANG_LANGUAGES = ["json","py","html","sql","md","java","php","css","xml","cpp","rs","cs","rb","sh","yaml","toml","go","clj","erl","js","ts","swift","kt","groovy","ps1"] const guessLang = new self.GuessLang() diff --git a/src/editor/languages.js b/src/editor/languages.js index 7032433..b0bd5b2 100644 --- a/src/editor/languages.js +++ b/src/editor/languages.js @@ -258,7 +258,7 @@ export const LANGUAGES = [ token: "vue", name: "Vue", parser: vueLanguage.parser, - guesslang: "vue", + guesslang: null, }), ]