coolify/bootstrap/helpers
Andras Bacsai d753d49ce6 fix: improve -f flag detection to prevent false positives
- Refine regex pattern to prevent false positives with flags like -foo, -from, -feature
- Change from \S (any non-whitespace) to [.~/]|$ (path characters or end of word)
- Add comprehensive tests for false positive prevention (4 test cases)
- Add path normalization tests for baseDirectory edge cases (6 test cases)
- Add @example documentation to injectDockerComposeFlags function

Prevents incorrect detection of:
- -foo, -from, -feature, -fast as the -f flag
- Ensures -f flag is only detected when followed by path characters or end of word

All 45 tests passing with 135 assertions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 13:49:46 +01:00
..
api.php
applications.php
constants.php
databases.php
docker.php fix: improve -f flag detection to prevent false positives 2025-11-18 13:49:46 +01:00
domains.php
github.php
notifications.php
parsers.php
proxy.php fix(proxy): remove debugging ray call from Traefik version retrieval 2025-11-17 15:03:20 +01:00
remoteProcess.php
services.php
shared.php refactor(proxy): implement centralized caching for versions.json and improve UX 2025-11-17 14:53:28 +01:00
socialite.php
subscriptions.php
sudo.php fix(server): wrap complex piped commands in bash -c for sudo execution 2025-11-13 14:39:55 +01:00
timezone.php
versions.php refactor(proxy): implement centralized caching for versions.json and improve UX 2025-11-17 14:53:28 +01:00