mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Optimized code
This commit is contained in:
parent
29e9965f79
commit
912b309601
@ -1538,7 +1538,7 @@ namespace SqlSugar
|
||||
else
|
||||
{
|
||||
var tableName = this.QueryBuilder.AsTables.First().Value;
|
||||
if (tableName != null && Regex.IsMatch(tableName, @"^\w+$"))
|
||||
if (tableName != null && Regex.IsMatch(tableName.Replace(".", "").Replace("-",""), @"^\w+$"))
|
||||
{
|
||||
tableName = SqlBuilder.GetTranslationTableName(tableName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user