cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject [2/3] cordova-windows git commit: Fix pattern for extracting capabilities names
Date Fri, 18 Nov 2016 18:05:58 GMT
Fix pattern for extracting capabilities names


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/00b6fa74
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/00b6fa74
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/00b6fa74

Branch: refs/heads/master
Commit: 00b6fa74f9279382febe5ad85c46723993a29223
Parents: 8753c42
Author: Nikita Matrosov <matrosov.nikita94@gmail.com>
Authored: Thu Nov 17 16:07:31 2016 +0300
Committer: Nikita Matrosov <matrosov.nikita94@gmail.com>
Committed: Thu Nov 17 16:07:31 2016 +0300

----------------------------------------------------------------------
 template/cordova/lib/ConfigChanges.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00b6fa74/template/cordova/lib/ConfigChanges.js
----------------------------------------------------------------------
diff --git a/template/cordova/lib/ConfigChanges.js b/template/cordova/lib/ConfigChanges.js
index 1bd620f..ab444c9 100644
--- a/template/cordova/lib/ConfigChanges.js
+++ b/template/cordova/lib/ConfigChanges.js
@@ -82,7 +82,7 @@ function cloneObject(obj) {
  * @return {String} name of capability
  */
 function getCapabilityName(capability) {
-    var reg = /Name="(\w+)"/i;
+    var reg = /Name\s*=\s*"(.*?)"/;
     return capability.xml.match(reg)[1];
 }
 


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


Mime
View raw message