Commit 1e1d904
committed
Allow colons in default values for environment variables
Anything after a third colon is silently ignored in variable
substitution, which prevents using default values with colons in them
(e.g. URLs or image:tag).
This limits the split at 3 parts by joining any additional parts back
together.
A similar fix was previously proposed in #882 a couple years ago. Open
to exploring different solutions (e.g. quoting the entire default value
or escaping colons) if there is still a desire to retain the ability to
introduce more than 2 arguments in variable substitution.
Fixes #719, #883.1 parent f4ee5d0 commit 1e1d904
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments