jsharmony-cms 1.13.0 → 1.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,7 +91,7 @@ function jsHarmonyCMSConfig(){
91
91
  //List of remote paths to ignore
92
92
  //* Future - Not implemented
93
93
  //ignore_remote: [],
94
- //ex. ["path/to/file1","path/to/folder2",{ "regex": "/regex1/"},{ "regex": "/regex_with_flags/i"}]
94
+ //ex. ["path/to/file1","path/to/folder2",{ "regex": "/regex1/"},{ "regex": "/regex_with_flags/i"}, function(fpath){ return true; /* Ignore when true */ }]
95
95
 
96
96
  //FTP/FTPS/SFTP publish settings
97
97
  ftp_config: {
@@ -2027,6 +2027,10 @@ module.exports = exports = function(module, funcs){
2027
2027
  for(var i=0;i<publish_params.ignore_remote.length;i++){
2028
2028
  var ignore_expr = publish_params.ignore_remote[i];
2029
2029
  if(!ignore_expr) continue;
2030
+ if(_.isFunction(ignore_expr)){
2031
+ if(ignore_expr(fpath)) return true;
2032
+ continue;
2033
+ }
2030
2034
  var ignore_path = HelperFS.convertWindowsToPosix(ignore_expr.toString());
2031
2035
  if(ignore_path == fpath) return true;
2032
2036
  if(fpath.indexOf(ignore_path+'/')==0) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsharmony-cms",
3
- "version": "1.13.0",
3
+ "version": "1.13.2",
4
4
  "description": "jsHarmony CMS",
5
5
  "main": "index.js",
6
6
  "scripts": {