cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] android commit: [CB-4892] Fix create script only escaping the first space instead of all spaces.
Date Mon, 23 Sep 2013 08:21:51 GMT
Updated Branches:
  refs/heads/3.1.x 4441215e4 -> 5592765f0
  refs/heads/master a51edd357 -> 2d88a726b


[CB-4892] Fix create script only escaping the first space instead of all spaces.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/2d88a726
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/2d88a726
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/2d88a726

Branch: refs/heads/master
Commit: 2d88a726b7bc541a1d8f65332318ec67462aae05
Parents: a51edd3
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Sep 23 10:16:58 2013 +0200
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Sep 23 10:16:58 2013 +0200

----------------------------------------------------------------------
 bin/lib/create.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/2d88a726/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 8d597ea..9c6e86c 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -123,7 +123,7 @@ exports.createProject = function(project_path, package_name, project_name,
proje
                            project_template_dir : 
                            path.join(ROOT, 'bin', 'templates', 'project');
 
-    var safe_activity_name = project_name.replace(/\W/, '');
+    var safe_activity_name = project_name.replace(/\W/g, '');
     var package_as_path = package_name.replace(/\./g, path.sep);
     var activity_dir    = path.join(project_path, 'src', package_as_path);
     var activity_path   = path.join(activity_dir, safe_activity_name + '.java');


Mime
View raw message