-
Open on YouTube :/
+ <%
+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
+
+
+<%
+ });
+} else {
+%>
+ <% invresults?.forEach(x => { %>
+
-
-<% }) %>
+ <% }) %>
+<% } %>
+
-