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(65): Setting variable does not work when value has dash: Updates … #69

Merged
merged 2 commits into from
Mar 25, 2022

Conversation

AndrewAllison
Copy link

My first PR so please be gentle 😁

I've added a new regex. It might be far from the greatest approach but seemed like a quick fix for something that's causing me and others issues.

Tested against

node cli.js -v test="$(echo bax; echo foo=bar)" -p test
node cli.js -v test="123-4543-213" -p test

Also added examples https://regexr.com/6i33o

cli.js Outdated Show resolved Hide resolved
@entropitor entropitor merged commit 505e8ba into entropitor:master Mar 25, 2022
@entropitor
Copy link
Owner

Published as v5.1.0

@klarstrup
Copy link

nice

@domneuk
Copy link

domneuk commented Mar 31, 2022

First of all: thank you for your work!

I stumbled upon a similar problem: Adding DEBUG=release-it:* as command line variable fails, because it has a star in it.
Complete command: dotenv -c -v DEBUG=release-it:* -- release-it

Can you please add this the regex?

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.

4 participants