From 768e40b1694bf989273c2202e64ab61e2542b853 Mon Sep 17 00:00:00 2001 From: Steve Heffernan Date: Thu, 30 Oct 2014 16:24:36 -0700 Subject: [PATCH] Updated setup doc version url replacer to support multiple digit versions --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index dc23f6a3a..4621fed72 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -585,10 +585,10 @@ module.exports = function(grunt) { var version = pkg.version; // remove the patch version to point to the latest patch - version = version.replace(/(\d\.\d)\.\d/, '$1'); + version = version.replace(/(\d+\.\d+)\.\d+/, '$1'); // update the version in http://vjs.zencdn.net/4.3/video.js - doc = doc.replace(/(\/\/vjs\.zencdn\.net\/)\d\.\d(\.\d)?/g, '$1'+version); + doc = doc.replace(/(\/\/vjs\.zencdn\.net\/)\d+\.\d+(\.\d+)?/g, '$1'+version); grunt.file.write('docs/guides/setup.md', doc); });