We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807b84b commit c2af1f4Copy full SHA for c2af1f4
nvm.sh
@@ -232,8 +232,8 @@ nvm_get_node_from_pkg_json() {
232
fi
233
if [ "$open_brackets" -ne 0 ] && [ "$open_brackets" -eq "$closed_brackets" ]; then
234
command printf "%s" "$engines_object" \
235
+ | command grep -o '"node":"[0-9a-zA-Z.<>=*~^xXv\-]\+"' \
236
| command tr -d '"' \
- | command grep -o 'node:[0-9a-zA-Z.<>=*~^xXv\-]\+' \
237
| command awk -F: '{ print $2 }'
238
# TODO add error handling logic
239
return 0
0 commit comments