From 8d3d4961e59d985b5ccaf67dbf93dd36481ce243 Mon Sep 17 00:00:00 2001
From: ashley
Date: Thu, 26 Sep 2024 17:58:48 +0000
Subject: [PATCH] lol
---
html/search.ejs | 104 ++++++++++++++----------------------------------
1 file changed, 29 insertions(+), 75 deletions(-)
diff --git a/html/search.ejs b/html/search.ejs
index 4d08204d..f739a676 100644
--- a/html/search.ejs
+++ b/html/search.ejs
@@ -993,88 +993,42 @@ font-weight: 1000;">dont.
<% } %>
- <%
-const searchStrings = [
- "\\bsuicide\\b", "\\bself harm\\b", "\\bself-harm\\b", "\\bsupport\\b", "\\bmurder\\b",
- "\\bhow to murder\\b", "\\bkill myself\\b", "\\bend my life\\b", "\\bdepressed\\b",
- "\\bdepression\\b", "\\blonely\\b", "\\bhurt myself\\b", "\\bselfharm\\b", "\\bdying\\b",
- "\\bwant to die\\b", "\\bkill\\b", "\\bdie\\b", "\\bfamily problems\\b", "\\bfamily issues\\b",
- "\\babuse\\b", "\\bdomestic violence\\b", "\\babusive parents\\b", "\\bfamily conflict\\b",
- "\\bestranged\\b", "\\bdisowned\\b", "\\brun away\\b", "\\brunaway\\b", "\\b.full stop punctuation.\\b"
-];
-
-
-const isFlagged = searchStrings.some(str => new RegExp(str, 'i').test(q));
-
-if (isFlagged) {
- invresults?.forEach(x => {
-%>
-
- Might include self-harm
-