omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Fix window matching for PWAs

Open MellowPhi opened this issue 2 months ago • 0 comments

The \b word boundaries in regex weren't matching browser PWA classes like brave-web.whatsapp.com__-Default Dots broke the boundaries, so the script skipped the real web app and grabbed whatever came first—like a terminal editing Whatsapp.desktop. The fix: Swap \b for (^|[\\.-]) before the pattern and ($|[\\.-]) after. Now it matches when the app name is at the start/end or next to dots/hyphens. This keeps things precise (no false positives) while fixing PWAs. One line changed, focusing back to WhatsApp now works correctly.

Fixes: https://github.com/basecamp/omarchy/issues/3669

MellowPhi avatar Nov 29 '25 08:11 MellowPhi