File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1240,6 +1240,10 @@ nvm_ls_remote_index_tab() {
1240
1240
local PATTERN
1241
1241
PATTERN=" ${3-} "
1242
1242
1243
+ if [ " ${PATTERN# " ${PATTERN% ?} " } " = ' .' ]; then
1244
+ PATTERN=" ${PATTERN% .} "
1245
+ fi
1246
+
1243
1247
local VERSIONS
1244
1248
if [ -n " ${PATTERN} " ] && [ " ${PATTERN} " != ' *' ]; then
1245
1249
if [ " ${FLAVOR} " = ' iojs' ]; then
Original file line number Diff line number Diff line change @@ -40,6 +40,19 @@ v0.3.8"
40
40
41
41
[ " _$OUTPUT " = " _$EXPECTED_OUTPUT " ] || die " nvm_ls_remote 0.3 did not output 0.3.x versions; got $OUTPUT "
42
42
43
+ OUTPUT=" $( nvm_ls_remote 0.3.) "
44
+ EXPECTED_OUTPUT=" v0.3.0
45
+ v0.3.1
46
+ v0.3.2
47
+ v0.3.3
48
+ v0.3.4
49
+ v0.3.5
50
+ v0.3.6
51
+ v0.3.7
52
+ v0.3.8"
53
+
54
+ [ " _$OUTPUT " = " _$EXPECTED_OUTPUT " ] || die " nvm_ls_remote 0.3. did not output 0.3.x versions; got $OUTPUT "
55
+
43
56
# Sanity checks
44
57
OUTPUT=" $( nvm_print_implicit_alias remote stable) "
45
58
EXPECTED_OUTPUT_PATH=" ${MOCKS_DIR} /nvm_print_implicit_alias remote stable.txt"
You can’t perform that action at this time.
0 commit comments