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

regex check for beginning of string -v allowing --vacuum to fall through #2374

Merged
merged 1 commit into from
Oct 31, 2019
Merged

regex check for beginning of string -v allowing --vacuum to fall through #2374

merged 1 commit into from
Oct 31, 2019

Conversation

argakiig
Copy link
Contributor

No description provided.

@argakiig argakiig added bug docker updates and changes to the docker build image labels Oct 30, 2019
@argakiig argakiig added this to the V20.0 milestone Oct 30, 2019
@argakiig argakiig self-assigned this Oct 30, 2019
Copy link
Contributor

@guilhermelawless guilhermelawless left a comment

Choose a reason for hiding this comment

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

Testing the same condition in a script yields the expected results:

cases=("-v", "--vacuum", "-vb", "--vers", "-v --vacuum")
for i in "${cases[@]}"; do
    if [[ "$i" =~ ^"-v" ]]; then
        echo "MATCH $i"
    else
        echo "NO $i"
    fi
done
MATCH -v,
NO --vacuum,
MATCH -vb,
NO --vers,
MATCH -v --vacuum

Maybe "-vb" should not match, is that possible?

@argakiig argakiig merged commit ec289c1 into nanocurrency:master Oct 31, 2019
@argakiig argakiig deleted the docker/fix_vacuum branch October 31, 2019 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug docker updates and changes to the docker build image
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants