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 => { -%> -