dpa99c / cordova-check-plugins

A CLI tool to check for / manage plugin updates in Cordova/Phonegap projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ThorvaldAagaard opened this issue · comments

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

  • bug report
  • feature request
  • documentation issue

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