Closed frederic-mahe closed 4 years ago
grep "MRA-Alternatives_[0-9]*\.zip"
will also match MRA-Alternatives_.zip
. Maybe the pattern could be narrowed to grep "MRA-Alternatives_[0-9][0-9]*\.zip"
or grep -E "MRA-Alternatives_[0-9]+\.zip"
to force the presence of at least one digit?
Thanks for your contribution.
I'm not too worried about MRA-Alternatives_.zip
It would mean something went very wrong in the Updaters/Githubs that we are using here.
Not having a number might be even better for fast detection of the problem, as arithmetic operations will fail, and we'll notice that fast.
I'm not too worried about MRA-Alternatives_.zip It would mean something went very wrong in the Updaters/Githubs that we are using here. Not having a number might be even better for fast detection of the problem, as arithmetic operations will fail, and we'll notice that fast.
Makes sense. Thanks for pulling in my suggestions!
de-specialize the dot in regex patterns to match exactly what you mean: