Authored by Anderson Dsouza

Minor bug fix - handling similar filenames.

@@ -131,7 +131,7 @@ namespace Resx2Xls @@ -131,7 +131,7 @@ namespace Resx2Xls
131 if (!IsResxCultureSpecific_checkByFilePath(f)) 131 if (!IsResxCultureSpecific_checkByFilePath(f))
132 { 132 {
133 string filePathWOExt = f.Replace(".resx", ""); 133 string filePathWOExt = f.Replace(".resx", "");
134 - var cultureSpecificFiles = Array.FindAll<string>(files, a => a != f && a.Substring(0, filePathWOExt.Length) == filePathWOExt); 134 + var cultureSpecificFiles = Array.FindAll<string>(files, a => a != f && a.Length > filePathWOExt.Length && a.Substring(filePathWOExt.Length,1)=="." && a.Substring(0, filePathWOExt.Length) == filePathWOExt);
135 135
136 ResxData.ResxFilesMasterRow r = rd.ResxFilesMaster.NewResxFilesMasterRow(); 136 ResxData.ResxFilesMasterRow r = rd.ResxFilesMaster.NewResxFilesMasterRow();
137 r.FileSource = f; 137 r.FileSource = f;