dpa99c / cordova-check-plugins

A CLI tool to check for / manage plugin updates in Cordova/Phonegap projects.
217 stars 25 forks source link

Instead of just removing version when using unconstrain-version the id is blanked #40

Open ThorvaldAagaard opened 5 years ago

ThorvaldAagaard commented 5 years ago

I'm submitting a ... (check one with "x"):

Bug report

Everything after first @ is stripped to remove version, that conflict with plugins, where @ is included in the id

Current behavior:

Using plugin "@mauron85/cordova-plugin-background-geolocation": "^3.0.3",

cordova-check-plugins fails when this code is executed

var idToCheck = unconstrainVersions ? source.id.replace(/(@([^~]?).*)$/, '') : source.id;

as idToCheck now is blank

Check for version fails

Changing the regex to @([^@]+)$ that takes the last @ solves the problem