From 9ded984543978f0447192017999902e96f1a1f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Tue, 18 Aug 2026 11:46:19 +0200 Subject: [PATCH] fix(scripts): update watch target regex to match SwimBuddyWatch without space --- scripts/add-sentry-watch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/add-sentry-watch.js b/scripts/add-sentry-watch.js index 36cea67..825e9fd 100644 --- a/scripts/add-sentry-watch.js +++ b/scripts/add-sentry-watch.js @@ -43,7 +43,7 @@ if (content.includes(SENTRY_REPO_URL)) { // ── Find watch target UUID ── const watchTargetMatch = content.match( - /(\w{24})\s*\/\* SwimBuddy Watch \*\/\s*=\s*\{\s*\n\s*isa = PBXNativeTarget;\s*\n\s*buildConfigurationList = \w+ / + /(\w{24})\s*\/\* SwimBuddyWatch \*\/\s*=\s*\{\s*\n\s*isa = PBXNativeTarget;\s*\n\s*buildConfigurationList = \w+ / ); if (!watchTargetMatch) { console.error("Watch target not found"); @@ -55,7 +55,7 @@ console.log(`Watch target: ${watchTargetUuid}`); // ── Find watch target's Frameworks build phase UUID ── const watchTargetBlock = content.match( new RegExp( - `${watchTargetUuid}\\s*\\/\\* SwimBuddy Watch \\*\\/\\s*=\\s*\\{[\\s\\S]*?buildPhases\\s*=\\s*\\(([\\s\\S]*?)\\);` + `${watchTargetUuid}\\s*\\/\\* SwimBuddyWatch \\*\\/\\s*=\\s*\\{[\\s\\S]*?buildPhases\\s*=\\s*\\(([\\s\\S]*?)\\);` ) ); if (!watchTargetBlock) { @@ -143,7 +143,7 @@ if (!content.includes("packageReferences = (")) { const prodDepComment = `${prodDepId} /* ${SENTRY_PRODUCT} */`; // Find the watch target block and check if packageProductDependencies exists const wtPattern = new RegExp( - `(${watchTargetUuid}\\s*\\/\\* SwimBuddy Watch \\*\\/ = \\{[\\s\\S]*?fileSystemSynchronizedGroups = \\([\\s\\S]*?\\);[\\s\\S]*?)(name = )` + `(${watchTargetUuid}\\s*\\/\\* SwimBuddyWatch \\*\\/ = \\{[\\s\\S]*?fileSystemSynchronizedGroups = \\([\\s\\S]*?\\);[\\s\\S]*?)(name = )` ); const wtMatch = content.match(wtPattern); if (wtMatch && !content.includes("packageProductDependencies")) {