Skip to content

Commit 2531c6b

Browse files
committed
remove trailing dot
1 parent 6110d31 commit 2531c6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nvm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,10 @@ nvm_ls_remote_index_tab() {
12301230
local PATTERN
12311231
PATTERN="${3-}"
12321232

1233+
if [ "${PATTERN#"${PATTERN%?}"}" = '.' ]; then
1234+
PATTERN="${PATTERN%.}"
1235+
fi
1236+
12331237
local VERSIONS
12341238
if [ -n "${PATTERN}" ] && [ "${PATTERN}" != '*' ]; then
12351239
if [ "${FLAVOR}" = 'iojs' ]; then

0 commit comments

Comments
 (0)