Fix verion regex Fixes #6620 (#6625)

This commit is contained in:
Timothy Fike
2018-07-02 21:36:21 -04:00
committed by Barış Soner Uşaklı
parent c2b0be1f2c
commit e8a3c23d42

View File

@@ -268,7 +268,7 @@ define('admin/extend/plugins', ['jqueryui', 'translator', 'benchpress'], functio
};
Plugins.suggest = function (pluginId, callback) {
var nbbVersion = app.config.version.match(/^\d\.\d\.\d/);
var nbbVersion = app.config.version.match(/^\d+\.\d+\.\d+/);
$.ajax((app.config.registry || 'https://packages.nodebb.org') + '/api/v1/suggest', {
type: 'GET',
data: {