feat: auto get stable after use db
This commit is contained in:
parent
095a6e0f82
commit
932dc94f7e
|
@ -1682,6 +1682,11 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) {
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
char* ps = strndup(cmd->command, cmd->commandSize);
|
char* ps = strndup(cmd->command, cmd->commandSize);
|
||||||
char* last = lastWord(ps);
|
char* last = lastWord(ps);
|
||||||
|
char* elast = strrchr(last, '.'); // find end last
|
||||||
|
if(elast) {
|
||||||
|
last = elast;
|
||||||
|
}
|
||||||
|
|
||||||
if(strlen(last) < 2 ) {
|
if(strlen(last) < 2 ) {
|
||||||
goto _return;
|
goto _return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue