Browse Source

allow fullpath in filename convert

Nicolas Cannasse 5 years ago
parent
commit
2d68d13cfb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/fs/FileConverter.hx

+ 1 - 1
hxd/fs/FileConverter.hx

@@ -164,7 +164,7 @@ class FileConverter {
 		var ext = name.split(".").pop().toLowerCase();
 		for( r in cfg.rules )
 			switch( r.pt ) {
-			case Filename(f): if( name == f ) return r;
+			case Filename(f): if( name == f || path == f ) return r;
 			case Regexp(reg): if( reg.match(name) || reg.match(path) ) return r;
 			case Ext(e): if( ext == e ) return r;
 			case Exts(el): if( el.indexOf(ext) >= 0 ) return r;