incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [6/48] js commit: fixed up regex - should be able to include spaces
Date Thu, 07 Jun 2012 20:40:43 GMT
fixed up regex - should be able to include spaces


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/0ce12644
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/0ce12644
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/0ce12644

Branch: refs/heads/master
Commit: 0ce1264418fc69277c271fbd30b0690411196b16
Parents: 751b7fd
Author: Tim Kim <tim.kim@nitobi.com>
Authored: Thu May 31 17:32:01 2012 -0700
Committer: Tim Kim <tim.kim@nitobi.com>
Committed: Thu Jun 7 13:40:24 2012 -0700

----------------------------------------------------------------------
 lib/playbook/plugin/playbook/DirectoryEntry.js |    2 +-
 lib/playbook/plugin/playbook/Entry.js          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/0ce12644/lib/playbook/plugin/playbook/DirectoryEntry.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/DirectoryEntry.js b/lib/playbook/plugin/playbook/DirectoryEntry.js
index 4feba9c..bad3183 100644
--- a/lib/playbook/plugin/playbook/DirectoryEntry.js
+++ b/lib/playbook/plugin/playbook/DirectoryEntry.js
@@ -3,7 +3,7 @@ var DirectoryEntry = require('cordova/plugin/DirectoryEntry'),
     FileEntry = require('cordova/plugin/FileEntry'),
     FileError = require('cordova/plugin/FileError');
 
-var validFileRe = new RegExp('^[a-zA-Z][0-9a-zA-Z._]*$');
+var validFileRe = new RegExp('^[a-zA-Z][0-9a-zA-Z._ ]*$');
 
 module.exports = {
     createReader : function() {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/0ce12644/lib/playbook/plugin/playbook/Entry.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/Entry.js b/lib/playbook/plugin/playbook/Entry.js
index c2e6d1c..c520553 100644
--- a/lib/playbook/plugin/playbook/Entry.js
+++ b/lib/playbook/plugin/playbook/Entry.js
@@ -22,7 +22,7 @@ var recursiveCopy = function(srcDirPath, dstDirPath){
     }
 }
 
-var validFileRe = new RegExp('^[a-zA-Z][0-9a-zA-Z._]*$');
+var validFileRe = new RegExp('^[a-zA-Z][0-9a-zA-Z._ ]*$');
 
 module.exports = {
     getMetadata : function(successCallback, errorCallback){


Mime
View raw message