diff --git a/pluginHandler.js b/pluginHandler.js index d0d70b59..e8b3da5c 100644 --- a/pluginHandler.js +++ b/pluginHandler.js @@ -272,7 +272,7 @@ module.exports.pluginHandler = function (parent) { // MeshCentral doesn't adhere to semantic versioning (due to the - at the end of the version) // Convert the letter to ASCII for a "true" version number comparison var mcCurVer = parent.currentVer.replace(/-(.)$/, (m, p1) => { return p1.charCodeAt(0); }); - var piCompatVer = newconf.meshCentralCompat.replace(/-(.)$/, (m, p1) => { return p1.charCodeAt(0); }); + var piCompatVer = newconf.meshCentralCompat.replace(/-(.)\b/g, (m, p1) => { return p1.charCodeAt(0); }); latestRet.push({ "id": curconf._id, "installedVersion": curconf.version,