From 34b2ef0fd7e582e2dccae04e9ee1c9d7ef0aaed1 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 9 Mar 2025 17:47:23 +0200 Subject: [PATCH] Clean-up code --- public/scripts/extensions/regex/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/public/scripts/extensions/regex/index.js b/public/scripts/extensions/regex/index.js index e7c7e2505..78db4957a 100644 --- a/public/scripts/extensions/regex/index.js +++ b/public/scripts/extensions/regex/index.js @@ -335,8 +335,6 @@ function updateInfoBlock(editorHtml) { } const flagInfo = []; - // Check flags - flagInfo.push(regex.flags.includes('g') ? t`Applies to all matches` : t`Applies to the first match`); flagInfo.push(regex.flags.includes('i') ? t`Case insensitive` : t`Case sensitive`); @@ -346,7 +344,6 @@ function updateInfoBlock(editorHtml) { } catch (error) { infoBlock.addClass('error'); infoBlockTextSpan.text(error.message); - return; } }