Fix verion regex Fixes #6620 (#6625)

v1.18.x
Timothy Fike 7 years ago committed by Barış Soner Uşaklı
parent c2b0be1f2c
commit e8a3c23d42

@ -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: {

Loading…
Cancel
Save