Module | Dotenv::Substitutions::Variable |
In: |
lib/dotenv/substitutions/variable.rb
|
Substitute variables in a value.
HOST=example.com URL="https://$HOST"
VARIABLE | = | / (\\)? # is it escaped with a backslash? (\$) # literal $ (?!\() # shouldnt be followed by paranthesis \{? # allow brace wrapping ([A-Z0-9_]+)? # optional alpha nums \}? # closing brace /xi |