Skip to content

When using expand_vars=True, and the content is like "${VAR}ANOTHER_CONTENT", the ANOTHER_CONTENT will be ignored. #359

@flymanzhao

Description

@flymanzhao

code

import os
os.environ["B"] = "${A};Val_B;"
os.environ["A"] = "Val_A"
from environs import Env
env = Env(expand_vars=True)
print(env("B"))

expect:

Val_A;Val_B;

what I got:

Val_A

is this a bug? Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions