feat: less one char to match

This commit is contained in:
Alex Duan 2023-02-11 23:19:19 +08:00
parent 979ca40214
commit 494b1f1d83
1 changed files with 2 additions and 1 deletions

View File

@ -1689,7 +1689,8 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) {
last = elast + 1; last = elast + 1;
} }
if(strlen(last) < 2 ) { // less one char can match
if(strlen(last) == 0 ) {
goto _return; goto _return;
} }