mirror of
https://github.com/lightbend/config.git
synced 2025-02-03 16:10:10 +08:00
Note in README that substitutions don’t work inside quotes (#634)
* Note in README that substitutions don’t work inside quotes There’s more on this in HOCON.md but can’t hurt to repeat, people do miss it.
This commit is contained in:
parent
46daf99ac4
commit
8fc33c856d
@ -706,9 +706,12 @@ string `foo` are concatenated into a string `42 foo`:
|
||||
When concatenating values into a string, leading and trailing
|
||||
whitespace is stripped but whitespace between values is kept.
|
||||
|
||||
Unquoted strings also support substitutions of course:
|
||||
Quoted or unquoted strings can also concatenate with substitutions of course:
|
||||
|
||||
tasks-url : ${base-url}/tasks
|
||||
tasks-url : ${base-url}"tasks:colon-must-be-quoted"
|
||||
|
||||
Note: the `${}` syntax must be outside the quotes!
|
||||
|
||||
A concatenation can refer to earlier values of the same field:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user