Files
daily-notification-plugin/test-apps/ios-test-app/scripts/build-and-deploy.sh
Matthew Raymer 4412838c74 fix(ios): improve UUID extraction with better regex patterns
Enhanced UUID extraction with multiple fallback strategies:

UUID Extraction Improvements:
- Primary: Extended regex to match UUID pattern (36-char hex with dashes)
- Fallback 1: Basic regex to get first parentheses content
- Fallback 2: Extended regex with explicit UUID format if status was extracted
- Handles both macOS sed (BSD) and GNU sed compatibility

Regex Patterns:
- Primary: sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/'
- Fallback: sed 's/.*(\([^)]*\)).*/\1/'
- UUID format: 8-4-4-4-12 hex characters with dashes

Fixes:
- Status extraction: Detects if status was extracted instead of UUID
- UUID matching: Multiple patterns ensure UUID is found
- Compatibility: Works with both BSD and GNU sed

Result: Should now correctly extract UUID regardless of sed version
2025-11-11 22:20:13 -08:00

7.9 KiB
Executable File