mirror of
https://github.com/cjdenio/trax-accidents.git
synced 2026-12-01 03:06:19 +00:00
trim description
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ export default {
|
||||
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(
|
||||
/train[- ]v(?:ers[eu]s|s?\.?)?[- ](?:auto|vehicle|car)/i,
|
||||
|
||||
Reference in new issue
Block a user