You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/06/07 22:40:43 UTC
[6/48] js commit: fixed up regex - should be able to include spaces
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 <ti...@nitobi.com>
Authored: Thu May 31 17:32:01 2012 -0700
Committer: Tim Kim <ti...@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){