Fix changelog dialog to read new version format

Remove the 'vector' from the start of the version (otherwise the
tarballs are called vector-vector-[...].tar.gz). The jenkins
script already creates these files, so update accordingly.
This commit is contained in:
David Baker 2016-11-13 23:06:57 +00:00
parent b0c1097f86
commit 70d383fb1b
2 changed files with 5 additions and 4 deletions

View file

@ -23,11 +23,11 @@ import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
/**
* Check a version string is compatible with the Changelog
* dialog
* dialog ([vectorversion]-react-[react-sdk-version]-js-[js-sdk-version])
*/
function checkVersion(ver) {
const parts = ver.split('-');
return parts[0] == 'vector' && parts[2] == 'react' && parts[4] == 'js';
return parts.length == 5 && parts[1] == 'react' && parts[3] == 'js';
}
export default React.createClass({