You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mikalai Birukou (JIRA)" <ji...@apache.org> on 2015/11/02 02:08:27 UTC

[jira] [Created] (CB-9926) plugman.ubuntu looks for '.' in plugin_id, while now '-' are used

Mikalai Birukou created CB-9926:
-----------------------------------

             Summary: plugman.ubuntu looks for '.' in plugin_id, while now '-' are used
                 Key: CB-9926
                 URL: https://issues.apache.org/jira/browse/CB-9926
             Project: Apache Cordova
          Issue Type: Bug
          Components: Ubuntu
         Environment: Ubuntu 15.10, cordova -v === 5.3.3
            Reporter: Mikalai Birukou
            Assignee: Maxim Ermilov


Line 74 in cordova/node_modules/cordova-lib/src/plugman/platforms/ubuntu.js throws an error like, null has no field '0', when trying to install plugin "cordova-plugin-file"

Line 74 looks as follows:
var class_name = plugin_id.match(/\.[^.]+$/)[0].substr(1);

RegExp should be changed from dots to dashes, as new plugins have dashes in their names.

Everything works, when line 74 is replaced with:
var class_name = plugin_id.match(/-[^-]+$/)[0].substr(1);




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org