trim description

This commit is contained in:
cjdenio committed 2026-11-04 09:29:23 -07:00
1 parent e554dc99ff
commit b61141ba1f
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ export default {
alert.description_text.find((t) => t.language === "en")?.text ?? alert.description_text.find((t) => t.language === "en")?.text ??
""; "";
const content = title + "\n\n" + description; const content = [title.trim(), description.trim()].filter(e => !!e).join("\n\n")
const result = content.match( const result = content.match(
/train[- ]v(?:ers[eu]s|s?\.?)?[- ](?:auto|vehicle|car)/i, /train[- ]v(?:ers[eu]s|s?\.?)?[- ](?:auto|vehicle|car)/i,