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

Failure to parse on $ #53

Closed
calexander3 opened this issue Mar 1, 2021 · 2 comments · Fixed by #54
Closed

Failure to parse on $ #53

calexander3 opened this issue Mar 1, 2021 · 2 comments · Fixed by #54

Comments

@calexander3
Copy link

After upgrading from 1.4 to 2.1, this line of my .env file started to fail to parse:

GROUP_FILTER_REGEX=^((?!Everyone).)*$

Stack Trace:

Sprache.ParseException: Parsing failure: unexpected 'T'; expected end of input (Line 27, Column 1); recently consumed: IDER=okta

   at Sprache.ParserExtensions.Parse[T](Parser`1 parser, String input)
   at DotNetEnv.Parsers.ParseDotenvFile(String contents, Func`2 tranform)
   at DotNetEnv.Env.LoadContents(String contents, LoadOptions options)
   at DotNetEnv.Env.Load(String path, LoadOptions options)

The next line starts with T so I think that is what the error is talking about.

Removing the $ allows it to load but as that it is a necessary part of the value, I can't remove it permanently.

@rogusdev
Copy link
Collaborator

rogusdev commented Mar 2, 2021

Wow, thank you! This was a critical bug for sure. Easy enough to fix thankfully. Fix rolled out in 2.1.1 -- I hope it works great for you!

@calexander3
Copy link
Author

Works great indeed! Thank you!

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 a pull request may close this issue.

2 participants