初步更新文章栏目路径功能

This commit is contained in:
comm5v8
2019-05-21 21:46:16 +08:00
parent ecc0c97c66
commit 34fdb431d4
96 changed files with 24881 additions and 162 deletions
+11
View File
@@ -99,6 +99,17 @@ namespace COMCMS.Common
return Regex.IsMatch(str, @"^[A-Za-z0-9]+$");
}
/// <summary>
/// 判断是否为正确的
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static bool IsFilePath(string str)
{
//A-Z, a-z, 0-9, -, /, =
return Regex.IsMatch(str, @"[A-Za-z0-9-\/]");
}
/// <summary>
/// 验证对象是否为货币格式
/// </summary>