cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [08/32] cordova-fetch git commit: CB-11252 Fix cordova fetch for scoped packages
Date Tue, 06 Jun 2017 00:44:30 GMT
CB-11252 Fix cordova fetch for scoped packages

 This closes #450


Project: http://git-wip-us.apache.org/repos/asf/cordova-fetch/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-fetch/commit/35dcee18
Tree: http://git-wip-us.apache.org/repos/asf/cordova-fetch/tree/35dcee18
Diff: http://git-wip-us.apache.org/repos/asf/cordova-fetch/diff/35dcee18

Branch: refs/heads/master
Commit: 35dcee18c2bd5500d4cc5221ea4889471e71161a
Parents: 79b6579
Author: carynbear <caryn.tran@berkeley.edu>
Authored: Fri Jun 3 14:47:09 2016 -0700
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Fri Jun 3 16:36:47 2016 -0700

----------------------------------------------------------------------
 index.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-fetch/blob/35dcee18/index.js
----------------------------------------------------------------------
diff --git a/index.js b/index.js
index 0e3c3fe..b5a9b66 100644
--- a/index.js
+++ b/index.js
@@ -151,7 +151,11 @@ function trimID(target) {
     //strip away everything after '@'
     if(target.indexOf('@') != -1) {
         parts = target.split('@');
-        target = parts[0];
+        if (parts.length > 2) {
+            target = '@' + parts[1];
+        } else {
+            target = parts[0];
+        }
     }        
     
     return target;


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


Mime
View raw message