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: Incomplete value if it contains the = symbol #14

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

jeijei4
Copy link
Contributor

@jeijei4 jeijei4 commented Dec 29, 2022

Overview

Reading the .env file:
if the value contains the = symbol then delete it.

Changes

Capture only the first = symbol.
All leading and trailing white space removed.

Example

DB_PASSWORD   =   w1G43+R/c4v8= 

Value obtained:

   w1G43+R/c4v8 

Expected value:

w1G43+R/c4v8=

Error: if the value contains the = symbol then delete it.
Solution: Capture only the first = symbol.
@bmf-san bmf-san added the bug Something isn't working label Dec 30, 2022
@bmf-san bmf-san self-requested a review December 30, 2022 14:39
Copy link
Owner

@bmf-san bmf-san left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll merge it.

@bmf-san bmf-san merged commit 9417b80 into bmf-san:master Dec 30, 2022
@jeijei4 jeijei4 deleted the patch-1 branch January 30, 2023 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants