feat: auto get stable after use db

This commit is contained in:
Alex Duan 2023-02-11 22:58:18 +08:00
parent 095a6e0f82
commit 932dc94f7e
1 changed files with 5 additions and 0 deletions

View File

@ -1682,6 +1682,11 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) {
bool ret = false;
char* ps = strndup(cmd->command, cmd->commandSize);
char* last = lastWord(ps);
char* elast = strrchr(last, '.'); // find end last
if(elast) {
last = elast;
}
if(strlen(last) < 2 ) {
goto _return;
}