Commit 90f412c
committed
fix: use URL format detection instead of string comparison for config injection
- Replace string comparison with URL format detection (http:// or https:// prefix)
- This fixes the bug where sed global replacement would replace all placeholders,
including those in condition checks, causing the condition to always evaluate to false
- Now the code checks if apiBase starts with http:// or https:// to determine if it was replaced
- All tests pass: replacement works correctly, unchanged placeholder is handled properly1 parent 2e14044 commit 90f412c
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| |||
0 commit comments