From b2977d8c44112e50a0bbcf23c5b77d75ec58ed27 Mon Sep 17 00:00:00 2001 From: Dwsy <1521986032@qq.com> Date: Wed, 15 Feb 2023 11:09:17 +0800 Subject: [PATCH] add code highlighting --- .env | 2 +- 1.js | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 1.js diff --git a/.env b/.env index 3f27bc6..994179e 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ # Glob API URL -VITE_GLOB_API_URL='http://20.222.29.173:3002' +VITE_GLOB_API_URL='http://localhost:3002' \ No newline at end of file diff --git a/1.js b/1.js deleted file mode 100644 index 89cc18c..0000000 --- a/1.js +++ /dev/null @@ -1,11 +0,0 @@ -// String containing code snippets -let str = "let x = 10; console.log(x);" - -// Create regex pattern -let regexp = /^(?:\s{4}|\t).+/gm - -// Test if any code snippets were detected -if (str.match(regexp)) { - // Code snippet was detected, do something with it - console.log(str) -}