From fad255805aec0ee9da53f68e86daeb33ebf77d95 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 28 Dec 2011 11:19:17 -0500 Subject: [PATCH] Support pre-release node version documentation. --- plugins/node/functions/node-docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/functions/node-docs b/plugins/node/functions/node-docs index 8dfd49c9..cbf4bac6 100644 --- a/plugins/node/functions/node-docs +++ b/plugins/node/functions/node-docs @@ -1,4 +1,4 @@ # Open the node api for your current version to the optional section. # TODO: Make the sections easier to use. -open "http://nodejs.org/docs/$(node --version)/api/all.html#${1}" +open "http://nodejs.org/docs/$(node --version | sed 's/-.*//')/api/all.html#${1}"