From 7dd63fa9c8692cfe9211d1da119faebd0d9f3eed Mon Sep 17 00:00:00 2001 From: Bluefox Date: Sat, 16 May 2026 19:49:12 +0200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index a502ca7..94910d5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -797,7 +797,7 @@ class HassAdapter extends Adapter { const rawPatterns = (this.config.excludePatterns || '').toString(); this.excludePatterns = rawPatterns - .split('\n') + .split(/\r?\n/) .map(s => s.trim()) .filter(line => line.length > 0 && !line.startsWith('#'));