Skip to content

Commit 9d3e27a

Browse files
committed
made underscore a const member var
1 parent 2bac1fc commit 9d3e27a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public class ModelExporter : System.IDisposable
3636

3737
const string ProgressBarTitle = "Fbx Export";
3838

39+
// replace invalid chars with this string
40+
const string InvalidCharReplacement = "_";
41+
3942
/// <summary>
4043
/// Create instance of example
4144
/// </summary>
@@ -1023,7 +1026,7 @@ private static void EnsureDirectory (string path)
10231026

10241027
public static string ConvertToValidFilename(string filename)
10251028
{
1026-
return System.Text.RegularExpressions.Regex.Replace (filename, "[" + new string(Path.GetInvalidFileNameChars()) + "]", "_");
1029+
return System.Text.RegularExpressions.Regex.Replace (filename, "[" + new string(Path.GetInvalidFileNameChars()) + "]", InvalidCharReplacement);
10271030
}
10281031
}
10291032
}

0 commit comments

Comments
 (0)