mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
Updated setup doc version url replacer to support multiple digit versions
This commit is contained in:
parent
5d859a92b5
commit
768e40b169
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user