fix: only replace "tab" at the beginning
This commit is contained in:
parent
543458b473
commit
ee17b22110
1 changed files with 2 additions and 2 deletions
|
|
@ -35,8 +35,8 @@ def is_pypika_function_object(field: str) -> bool:
|
|||
|
||||
|
||||
def get_doctype_name(table_name: str) -> str:
|
||||
if "tab" in table_name:
|
||||
table_name = table_name.replace("tab", "")
|
||||
if table_name.startswith(("tab", "`tab", '"tab')):
|
||||
table_name = table_name.replace("tab", "", 1)
|
||||
table_name = table_name.replace("`", "")
|
||||
table_name = table_name.replace('"', "")
|
||||
return table_name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue