We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbac1ca commit 8625424Copy full SHA for 8625424
1 file changed
libexec/tfenv-version-name
@@ -86,8 +86,8 @@ if [[ "${TFENV_VERSION}" =~ ^latest.*$ ]]; then
86
regex="${TFENV_VERSION##*\:}";
87
log 'debug' "'latest' keyword uses regex: ${regex}";
88
else
89
- regex='.*'; # Just saves a separate command below without the grep
90
- log 'debug' "'latest' keyword does not use regex";
+ regex="^[0-9]\+\.[0-9]\+\.[0-9]\+$";
+ log 'debug' "Version uses latest keyword alone. Forcing regex to match stable versions only: ${regex}";
91
fi;
92
93
declare local_version='';
0 commit comments