APG.CodeHelper.StringHelper.CorrectFileName C# (CSharp) Method

CorrectFileName() public static method

”бирает недопустимые символы пути в строке, замен¤¤ их на заданный
public static CorrectFileName ( string incorrectFileName, string substStr ) : string
incorrectFileName string
substStr string
return string
        public static string CorrectFileName(string incorrectFileName, string substStr)
        {
            const string pattern = "\\\x2F|\\\x3C|\\\x3E|\\\\|\\\x3F|\\\x3A|\\\x2A|\\\"|\\\x7C";
            return Regex.Replace(incorrectFileName, pattern, substStr);
        }