Skip to content

Commit c2af1f4

Browse files
author
edwmurph
committed
try changing logic regarding use of quotation marks
1 parent 807b84b commit c2af1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ nvm_get_node_from_pkg_json() {
232232
fi
233233
if [ "$open_brackets" -ne 0 ] && [ "$open_brackets" -eq "$closed_brackets" ]; then
234234
command printf "%s" "$engines_object" \
235+
| command grep -o '"node":"[0-9a-zA-Z.<>=*~^xXv\-]\+"' \
235236
| command tr -d '"' \
236-
| command grep -o 'node:[0-9a-zA-Z.<>=*~^xXv\-]\+' \
237237
| command awk -F: '{ print $2 }'
238238
# TODO add error handling logic
239239
return 0

0 commit comments

Comments
 (0)