add stuff

This commit is contained in:
ashley 2024-09-24 13:48:22 +00:00
parent 2008aabb74
commit 0082765bf6

View file

@ -667,14 +667,14 @@ function extractQueryFromUpsellMessage(message) {
<!-- self harm --> <!-- self harm -->
<% <%
const searchStrings = [ const searchStrings = [
"suicide", "self harm", "self-harm", "support", "murder", "how to murder", "kill myself", "\\bsuicide\\b", "\\bself harm\\b", "\\bself-harm\\b", "\\bsupport\\b", "\\bmurder\\b",
"end my life", "depressed", "depression", "lonely", "\\bhow to murder\\b", "\\bkill myself\\b", "\\bend my life\\b", "\\bdepressed\\b",
"hurt myself", "selfharm", "selfharm", "dying", "want to die", "\\bdepression\\b", "\\blonely\\b", "\\bhurt myself\\b", "\\bselfharm\\b", "\\bdying\\b",
"kill", "die", "family problems", "family issues", "abuse", "\\bwant to die\\b", "\\bkill\\b", "\\bdie\\b", "\\bfamily problems\\b", "\\bfamily issues\\b",
"domestic violence", "abusive parents", "family conflict", "\\babuse\\b", "\\bdomestic violence\\b", "\\babusive parents\\b", "\\bfamily conflict\\b",
"estranged", "disowned", "run away", "runaway", ".full stop punctuation." "\\bestranged\\b", "\\bdisowned\\b", "\\brun away\\b", "\\brunaway\\b", "\\b.full stop punctuation.\\b"
]; ];
if (searchStrings.some(str => q.toLowerCase().includes(str))) { if (searchStrings.some(str => new RegExp(str, 'i').test(q))) {
%> %>
<div class="container"> <div class="container">