Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(expand env): change os.ExpandEnv to regex #1231

Merged
merged 3 commits into from
Dec 9, 2021

Conversation

Akegarasu
Copy link
Contributor

由于os.ExpandEnv会解析$且无法转义,导致配置文件中包含$的值无法正常被解析
使用regex写的一个expand替换掉os.ExpandEnv

modules/config/config.go Outdated Show resolved Hide resolved
@wdvxdr1123 wdvxdr1123 merged commit 49aedc9 into Mrs4s:dev Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants