All files / src/lib legal-notice.ts

100% Statements 5/5
100% Branches 2/2
100% Functions 2/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39                                      1x                   1x   1x     1x 6x      
/**
 * The provider of this website, as the legal notice (§ 5 DDG) and the privacy
 * policy (Art. 13 GDPR) name him. One place, so both pages agree.
 *
 * The address is one that can receive legal mail (no PO box). § 5 Abs. 1
 * Nr. 2 DDG asks for email and a second quick, direct way to reach the
 * provider; the CJEU (C-298/07) accepts an electronic contact form instead of
 * a telephone, so `phone` is optional and the pages leave the line out
 * without one. `isComplete()` is false while a placeholder is left, and
 * `seo.test.ts` fails in CI while one is, so none can be published.
 */
export const PROVIDER: {
  name: string;
  street: string;
  postalCode: string;
  city: string;
  country: string;
  email: string;
  phone?: string;
} = {
  name: "Matthias Buchhorn-Roth",
  street: "Simplonstrasse 56",
  postalCode: "10245",
  city: "Berlin",
  country: "Deutschland",
  email: "matthias.buchhorn@web.de",
};
 
/** The date the two pages were last changed, shown on both. */
export const LEGAL_LAST_UPDATED = "2026-11-09";
 
const PLACEHOLDER = /^\[.*\]$/;
 
export function isComplete(): boolean {
  return !Object.values(PROVIDER).some(
    (v) => v !== undefined && PLACEHOLDER.test(v),
  );
}