dad0136365
Build and Push Multi-Platform Images / build-and-push (push) Successful in 41s
Reformats code style (line breaks, indentation, type annotations) without changing logic. Also includes minor feature additions bundled in the same lint run (stats service, user-settings groups, agrarmonitor polling improvements). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 lines
254 B
TypeScript
7 lines
254 B
TypeScript
const KNOWN_NAMES = ['factur-x.xml', 'zugferd-invoice.xml', 'xrechnung.xml'];
|
|
|
|
export function isERechnung(pdfBuffer: Buffer): boolean {
|
|
const asText = pdfBuffer.toString('latin1').toLowerCase();
|
|
return KNOWN_NAMES.some((n) => asText.includes(n));
|
|
}
|