Minor bug fix - handling similar filenames.
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -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; |
-
Please register or login to post a comment