From 7adf0212cd71a8ec604f65ba2c2e9bdfc5dec22d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 13 一月 2023 10:31:38 +0800 Subject: [PATCH] 2023-01-13 --- src/utils/utils-custom.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index 35123de..1eaf2e9 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -896,7 +896,7 @@ export function getTables (config, pops) { let tables = [] let cuts = [] - let cutreg = /(from|update|insert\s+into)\s+(@db@)?[a-z_]+/ig + let cutreg = /(from|update|insert\s+into)\s+(@db@)?[a-z0-9_]+/ig let trimreg = /(from|update|insert\s+into)\s+(@db@)?/ig if (config.setting && (!config.wrap || !config.wrap.datatype || config.wrap.datatype === 'dynamic')) { @@ -1125,7 +1125,7 @@ cuts = cuts.map(item => item.replace(trimreg, '')) tables.push(...cuts) - tables = tables.filter(Boolean) + tables = tables.filter(tb => tb && tb !== 'dbo' && tb.length > 1) tables = Array.from(new Set(tables)) return tables -- Gitblit v1.8.0