feat(drivers): country flag before the driver's name in timing, overlay, results, printouts and PDF (1.89.20)
This commit is contained in:
1 parent
da20a7e978
commit
6e45918e74
101 files changed
+2898
-45
No files matched your search
@@ -926,6 +926,8 @@ function normalizePdfExportPayload(input = {}) {
|
||||
rows: Array.isArray(section?.rows)
|
||||
? section.rows.map((row) => (Array.isArray(row) ? row.map((value) => String(value ?? "").trim()) : [String(row ?? "").trim()]))
|
||||
: [],
|
||||
// A country code per row for the flag before the driver's name ("SE", "GB-ENG"); anything else is dropped.
|
||||
flags: Array.isArray(section?.flags) ? section.flags.map((code) => (/^[A-Z]{2}(-[A-Z]{3})?$/.test(String(code || "")) ? String(code) : "")) : [],
|
||||
}))
|
||||
: [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user