初步更新文章栏目路径功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user